Skip to content

Commit b1c9368

Browse files
committed
Improve existing docs
1 parent 89086b0 commit b1c9368

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mock/mock.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@ func (m *Mock) TestData() objx.Map {
331331
Setting expectations
332332
*/
333333

334-
// Test sets the test struct variable of the mock object
334+
// Test sets the [TestingT] on which errors will be reported, otherwise errors
335+
// will cause a panic.
335336
// Test should not be called on an object that is going to be used in a
336337
// goroutine other than the one running the test function.
337338
func (m *Mock) Test(t TestingT) {

0 commit comments

Comments
 (0)