FailNow marks the test as failed and panics with a sentinel value instead of calling runtime.Goexit.
()
| 38 | // FailNow marks the test as failed and panics with a sentinel value instead of |
| 39 | // calling runtime.Goexit. |
| 40 | func (p *RecoverableT) FailNow() { |
| 41 | p.Fail() |
| 42 | panic(testFailure{}) |
| 43 | } |
| 44 | |
| 45 | // Fatal is equivalent to Log followed by FailNow. |
| 46 | func (p *RecoverableT) Fatal(args ...any) { |