Failed implements testing.TB. Failed reports whether the function has failed.
()
| 174 | |
| 175 | // Failed implements testing.TB. Failed reports whether the function has failed. |
| 176 | func (t *fakeT) Failed() bool { |
| 177 | t.T.Helper() |
| 178 | t.mu.Lock() |
| 179 | defer t.mu.Unlock() |
| 180 | return t.failed |
| 181 | } |
| 182 | |
| 183 | // Fatal implements testing.TB. Fatal is equivalent to Log followed by FailNow. |
| 184 | func (t *fakeT) Fatal(args ...any) { |