We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89086b0 commit b1c9368Copy full SHA for b1c9368
mock/mock.go
@@ -331,7 +331,8 @@ func (m *Mock) TestData() objx.Map {
331
Setting expectations
332
*/
333
334
-// Test sets the test struct variable of the mock object
+// Test sets the [TestingT] on which errors will be reported, otherwise errors
335
+// will cause a panic.
336
// Test should not be called on an object that is going to be used in a
337
// goroutine other than the one running the test function.
338
func (m *Mock) Test(t TestingT) {
0 commit comments