From c2989f188bde0c7737f86df8fa2ce19e3a914d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Tue, 11 Jul 2023 21:55:54 +0200 Subject: [PATCH] mock/tests: add method Helper() to all mock of *testing.T --- mock/mock_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mock/mock_test.go b/mock/mock_test.go index 77493c5..a1f992d 100644 --- a/mock/mock_test.go +++ b/mock/mock_test.go @@ -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{}) {