(t *testing.T)
| 155 | } |
| 156 | |
| 157 | func TestIOCoreWriteFailure(t *testing.T) { |
| 158 | core := NewCore( |
| 159 | NewJSONEncoder(testEncoderConfig()), |
| 160 | Lock(&ztest.FailWriter{}), |
| 161 | DebugLevel, |
| 162 | ) |
| 163 | err := core.Write(Entry{}, nil) |
| 164 | // Should log the error. |
| 165 | assert.Error(t, err, "Expected writing Entry to fail.") |
| 166 | } |
nothing calls this directly
no test coverage detected