(t *testing.T)
| 106 | } |
| 107 | |
| 108 | func TestNewStdLogAt(t *testing.T) { |
| 109 | // include DPanicLevel here, but do not include Development in options |
| 110 | levels := []zapcore.Level{DebugLevel, InfoLevel, WarnLevel, ErrorLevel, DPanicLevel} |
| 111 | for _, level := range levels { |
| 112 | withLogger(t, DebugLevel, []Option{AddCaller()}, func(l *Logger, logs *observer.ObservedLogs) { |
| 113 | std, err := NewStdLogAt(l, level) |
| 114 | require.NoError(t, err, "Unexpected error.") |
| 115 | std.Print("redirected") |
| 116 | checkStdLogMessage(t, "redirected", logs) |
| 117 | }) |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | func TestNewStdLogAtPanics(t *testing.T) { |
| 122 | // include DPanicLevel here and enable Development in options |
nothing calls this directly
no test coverage detected