(t *testing.T)
| 40 | } |
| 41 | |
| 42 | func 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 | |
| 53 | func TestLevelOfTee(t *testing.T) { |
| 54 | debugLogger, _ := observer.New(DebugLevel) |
nothing calls this directly
no test coverage detected