Fatal logs the passed message in the context of the test and fails the test
(args ...interface{})
| 83 | |
| 84 | // Fatal logs the passed message in the context of the test and fails the test |
| 85 | func (t *T) Fatal(args ...interface{}) { |
| 86 | log.Ctx(t.ctx).Error().Msg(fmt.Sprint(args...)) |
| 87 | t.FailNow() |
| 88 | } |
| 89 | |
| 90 | // Fatalf logs the passed message in the context of the test and fails the test |
| 91 | func (t *T) Fatalf(format string, args ...interface{}) { |