(t *testing.T)
| 105 | } |
| 106 | |
| 107 | func TestTestingWriter(t *testing.T) { |
| 108 | ts := newTestLogSpy(t) |
| 109 | w := NewTestingWriter(ts) |
| 110 | |
| 111 | n, err := io.WriteString(w, "hello\n\n") |
| 112 | assert.NoError(t, err, "WriteString must not fail") |
| 113 | assert.Equal(t, 7, n) |
| 114 | } |
| 115 | |
| 116 | func TestTestLoggerErrorOutput(t *testing.T) { |
| 117 | // This test verifies that the test logger logs internal messages to the |
nothing calls this directly
no test coverage detected