Skip to content

Commit e2ad959

Browse files
committed
mock/tests: add method Helper() to all mock of *testing.T
1 parent b534400 commit e2ad959

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mock/mock_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ type MockTestingT struct {
132132
logfCount, errorfCount, failNowCount int
133133
}
134134

135+
// Helper is like [testing.T.Helper] but does nothing.
136+
func (MockTestingT) Helper() {}
137+
135138
const mockTestingTFailNowCalled = "FailNow was called"
136139

137140
func (m *MockTestingT) Logf(string, ...interface{}) {

0 commit comments

Comments
 (0)