From 79b1ff831aeeca34ccccf1288351ce24fa4a48fc Mon Sep 17 00:00:00 2001 From: Ivan Pesenti Date: Mon, 17 Jul 2023 15:37:34 +0200 Subject: [PATCH] Fixed typos "Setup" means an existing arrangeament while "set up" is an action. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 51b5d97f9..dd9298030 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ func TestSomething(t *testing.T) { // create an instance of our test object testObj := new(MyMockedObject) - // setup expectations + // set up expectations testObj.On("DoSomething", 123).Return(true, nil) // call the code we are testing @@ -181,7 +181,7 @@ func TestSomethingWithPlaceholder(t *testing.T) { // create an instance of our test object 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) // call the code we are testing @@ -200,7 +200,7 @@ func TestSomethingElse2(t *testing.T) { // create an instance of our test object 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) // call the code we are testing