Fatalf implements testing.TB. Fatalf is equivalent to Logf followed by FailNow.
(format string, args ...any)
| 190 | // Fatalf implements testing.TB. Fatalf is equivalent to Logf followed by |
| 191 | // FailNow. |
| 192 | func (t *fakeT) Fatalf(format string, args ...any) { |
| 193 | t.T.Helper() |
| 194 | t.T.Logf(format, args...) |
| 195 | t.FailNow() |
| 196 | } |
| 197 | |
| 198 | // Helper is proxied to the original *testing.T. This is to avoid the fake |
| 199 | // method appearing in the call stack. |