(t *testing.T)
| 95 | } |
| 96 | |
| 97 | func TestMultiWriteSyncerFailsShortWrite(t *testing.T) { |
| 98 | ws := NewMultiWriteSyncer(AddSync(&ztest.ShortWriter{})) |
| 99 | n, err := ws.Write([]byte("test")) |
| 100 | assert.NoError(t, err, "Expected fake-success from short write") |
| 101 | assert.Equal(t, 3, n, "Expected byte count to return from underlying writer") |
| 102 | } |
| 103 | |
| 104 | func TestWritestoAllSyncs_EvenIfFirstErrors(t *testing.T) { |
| 105 | failer := &ztest.FailWriter{} |
nothing calls this directly
no test coverage detected