Errorf implements testing.TB. Errorf is equivalent to Logf followed by Fail.
(format string, args ...any)
| 145 | |
| 146 | // Errorf implements testing.TB. Errorf is equivalent to Logf followed by Fail. |
| 147 | func (t *fakeT) Errorf(format string, args ...any) { |
| 148 | t.T.Helper() |
| 149 | t.T.Logf(format, args...) |
| 150 | t.Fail() |
| 151 | } |
| 152 | |
| 153 | // Fail implements testing.TB. Fail marks the function as having failed but |
| 154 | // continues execution. |