Fatal logs the given msg and fields to t via t.Fatal at the fatal level.
(t testing.TB, msg string, fields ...slog.Field)
| 170 | |
| 171 | // Fatal logs the given msg and fields to t via t.Fatal at the fatal level. |
| 172 | func Fatal(t testing.TB, msg string, fields ...slog.Field) { |
| 173 | slog.Helper() |
| 174 | l(t).Fatal(ctx, msg, fields...) |
| 175 | } |
| 176 | |
| 177 | // FindFirstError finds the first slog.Field named "error" that contains an |
| 178 | // error value. |