Fatal is equivalent to Log followed by FailNow.
(args ...any)
| 44 | |
| 45 | // Fatal is equivalent to Log followed by FailNow. |
| 46 | func (p *RecoverableT) Fatal(args ...any) { |
| 47 | p.Errorf("%s", fmt.Sprint(args...)) |
| 48 | p.FailNow() |
| 49 | } |
| 50 | |
| 51 | // Fatalf is equivalent to Logf followed by FailNow. |
| 52 | func (p *RecoverableT) Fatalf(format string, args ...any) { |