Skip to content

Commit 54d05a4

Browse files
ryu-ton10boyan-soubachov
authored andcommitted
modify function name and docstrings
1 parent 44accac commit 54d05a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func (m *MyMockedObject) DoSomething(number int) (bool, error) {
152152

153153
// TestSomething is an example of how to use our test object to
154154
// make assertions about some target code we are testing.
155-
func TestDoSomething(t *testing.T) {
155+
func TestSomething(t *testing.T) {
156156

157157
// create an instance of our test object
158158
testObj := new(MyMockedObject)
@@ -169,12 +169,12 @@ func TestDoSomething(t *testing.T) {
169169

170170
}
171171

172-
// TestSomethingElse is a second example of how to use our test object to
172+
// TestSomethingWithPlaceholder is a second example of how to use our test object to
173173
// make assertions about some target code we are testing.
174174
// This time using a placeholder. Placeholders might be used when the
175175
// data being passed in is normally dynamically generated and cannot be
176176
// predicted beforehand (eg. containing hashes that are time sensitive)
177-
func TestDoSomethingWithPlaceholder(t *testing.T) {
177+
func TestSomethingWithPlaceholder(t *testing.T) {
178178

179179
// create an instance of our test object
180180
testObj := new(MyMockedObject)

0 commit comments

Comments
 (0)