mirror of
https://github.com/stretchr/testify.git
synced 2025-05-31 11:42:44 +00:00
Fixed typos
"Setup" means an existing arrangeament while "set up" is an action.
This commit is contained in:
parent
81667ad920
commit
a392378178
@ -159,7 +159,7 @@ func TestSomething(t *testing.T) {
|
|||||||
// create an instance of our test object
|
// create an instance of our test object
|
||||||
testObj := new(MyMockedObject)
|
testObj := new(MyMockedObject)
|
||||||
|
|
||||||
// setup expectations
|
// set up expectations
|
||||||
testObj.On("DoSomething", 123).Return(true, nil)
|
testObj.On("DoSomething", 123).Return(true, nil)
|
||||||
|
|
||||||
// call the code we are testing
|
// call the code we are testing
|
||||||
@ -181,7 +181,7 @@ func TestSomethingWithPlaceholder(t *testing.T) {
|
|||||||
// create an instance of our test object
|
// create an instance of our test object
|
||||||
testObj := new(MyMockedObject)
|
testObj := new(MyMockedObject)
|
||||||
|
|
||||||
// setup expectations with a placeholder in the argument list
|
// set up expectations with a placeholder in the argument list
|
||||||
testObj.On("DoSomething", mock.Anything).Return(true, nil)
|
testObj.On("DoSomething", mock.Anything).Return(true, nil)
|
||||||
|
|
||||||
// call the code we are testing
|
// call the code we are testing
|
||||||
@ -200,7 +200,7 @@ func TestSomethingElse2(t *testing.T) {
|
|||||||
// create an instance of our test object
|
// create an instance of our test object
|
||||||
testObj := new(MyMockedObject)
|
testObj := new(MyMockedObject)
|
||||||
|
|
||||||
// setup expectations with a placeholder in the argument list
|
// set up expectations with a placeholder in the argument list
|
||||||
mockCall := testObj.On("DoSomething", mock.Anything).Return(true, nil)
|
mockCall := testObj.On("DoSomething", mock.Anything).Return(true, nil)
|
||||||
|
|
||||||
// call the code we are testing
|
// call the code we are testing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user