Error logs the given msg and fields to t via t.Error at the error level.
(t testing.TB, msg string, fields ...slog.Field)
| 164 | |
| 165 | // Error logs the given msg and fields to t via t.Error at the error level. |
| 166 | func Error(t testing.TB, msg string, fields ...slog.Field) { |
| 167 | slog.Helper() |
| 168 | l(t).Error(ctx, msg, fields...) |
| 169 | } |
| 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) { |