mirror of https://github.com/stretchr/testify.git
require/tests: add Helper() method to all mocks of *testing.T
parent
fd06ff3e02
commit
da8268db44
|
@ -27,6 +27,9 @@ type MockT struct {
|
|||
Failed bool
|
||||
}
|
||||
|
||||
// Helper is like [testing.T.Helper] but does nothing.
|
||||
func (MockT) Helper() {}
|
||||
|
||||
func (t *MockT) FailNow() {
|
||||
t.Failed = true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue