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

Function TestTeeUnusualInput

zapcore/tee_test.go:42–51  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

40}
41
42func TestTeeUnusualInput(t *testing.T) {
43 // Verify that Tee handles receiving one and no inputs correctly.
44 t.Run("one input", func(t *testing.T) {
45 obs, _ := observer.New(DebugLevel)
46 assert.Equal(t, obs, NewTee(obs), "Expected to return single inputs unchanged.")
47 })
48 t.Run("no input", func(t *testing.T) {
49 assert.Equal(t, NewNopCore(), NewTee(), "Expected to return NopCore.")
50 })
51}
52
53func TestLevelOfTee(t *testing.T) {
54 debugLogger, _ := observer.New(DebugLevel)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.92
NewTeeFunction · 0.85
NewNopCoreFunction · 0.85

Tested by

no test coverage detected