(args ...any)
| 77 | } |
| 78 | |
| 79 | func (t *TestLogger) Fatal(args ...any) { |
| 80 | timestamp := time.Now() |
| 81 | e := t.buildPrefix(timestamp) + fmt.Sprint(append([]any{"fatal: "}, args...)...) |
| 82 | t.add(&event{timestamp: timestamp, msg: e}) |
| 83 | t.t.FailNow() |
| 84 | } |
| 85 | |
| 86 | func (t *TestLogger) Fatalf(format string, args ...any) { |
| 87 | timestamp := time.Now() |