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

Function TestLoggerDebugSuppressed

zapgrpc/zapgrpc_test.go:88–96  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

86}
87
88func TestLoggerDebugSuppressed(t *testing.T) {
89 checkMessages(t, zapcore.InfoLevel, []Option{WithDebug()}, zapcore.DebugLevel, nil, func(logger *Logger) {
90 logger.Print("hello")
91 logger.Printf("%s world", "hello")
92 logger.Println()
93 logger.Println("foo")
94 logger.Println("foo", "bar")
95 })
96}
97
98func TestLoggerWarningExpected(t *testing.T) {
99 checkMessages(t, zapcore.DebugLevel, nil, zapcore.WarnLevel, []string{

Callers

nothing calls this directly

Calls 5

checkMessagesFunction · 0.85
WithDebugFunction · 0.85
PrintMethod · 0.45
PrintfMethod · 0.45
PrintlnMethod · 0.45

Tested by

no test coverage detected