Improve existing docs

This commit is contained in:
Grégoire Paris 2025-03-21 13:21:25 +01:00
parent 89086b0757
commit b1c9368f81
No known key found for this signature in database
GPG Key ID: 6CE0C6A7B0858F70

View File

@ -331,7 +331,8 @@ func (m *Mock) TestData() objx.Map {
Setting expectations
*/
// Test sets the test struct variable of the mock object
// Test sets the [TestingT] on which errors will be reported, otherwise errors
// will cause a panic.
// Test should not be called on an object that is going to be used in a
// goroutine other than the one running the test function.
func (m *Mock) Test(t TestingT) {