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

Function TestSugarLnLoggingIgnored

sugar_test.go:435–440  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

433}
434
435func TestSugarLnLoggingIgnored(t *testing.T) {
436 withSugar(t, WarnLevel, nil, func(logger *SugaredLogger, logs *observer.ObservedLogs) {
437 logger.Infoln("hello")
438 assert.Zero(t, logs.Len(), "Expected zero log statements.")
439 })
440}
441
442func TestSugarPanicLogging(t *testing.T) {
443 tests := []struct {

Callers

nothing calls this directly

Calls 3

withSugarFunction · 0.85
InfolnMethod · 0.45
LenMethod · 0.45

Tested by

no test coverage detected