MCPcopy
hub / github.com/uber-go/zap / TestNewStdLog

Function TestNewStdLog

global_test.go:100–106  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

98}
99
100func TestNewStdLog(t *testing.T) {
101 withLogger(t, DebugLevel, []Option{AddCaller()}, func(l *Logger, logs *observer.ObservedLogs) {
102 std := NewStdLog(l)
103 std.Print("redirected")
104 checkStdLogMessage(t, "redirected", logs)
105 })
106}
107
108func TestNewStdLogAt(t *testing.T) {
109 // include DPanicLevel here, but do not include Development in options

Callers

nothing calls this directly

Calls 5

AddCallerFunction · 0.85
NewStdLogFunction · 0.85
checkStdLogMessageFunction · 0.85
withLoggerFunction · 0.70
PrintMethod · 0.45

Tested by

no test coverage detected