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

This commit is contained in:
Olivier Mengué 2023-07-11 21:55:54 +02:00
parent b534400d17
commit e2ad95950e

View File

@ -132,6 +132,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{}) {