mock/tests: add method Helper() to all mock of *testing.T

pull/1423/head
Olivier Mengué 2023-07-11 21:55:54 +02:00
parent da8268db44
commit c2989f188b
1 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,9 @@ type MockTestingT struct {
logfCount, errorfCount, failNowCount int
}
// Helper is like [testing.T.Helper] but does nothing.
func (MockTestingT) Helper() {}
const mockTestingTFailNowCalled = "FailNow was called"
func (m *MockTestingT) Logf(string, ...interface{}) {