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

Function TestMultiWriteSyncerSync_NoErrorsOnDiscard

zapcore/write_syncer_test.go:122–125  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

120}
121
122func TestMultiWriteSyncerSync_NoErrorsOnDiscard(t *testing.T) {
123 ws := NewMultiWriteSyncer(&ztest.Discarder{})
124 assert.NoError(t, ws.Sync(), "Expected error-free sync to /dev/null")
125}
126
127func TestMultiWriteSyncerSync_AllCalled(t *testing.T) {
128 failed, second := &ztest.Buffer{}, &ztest.Buffer{}

Callers

nothing calls this directly

Calls 2

NewMultiWriteSyncerFunction · 0.85
SyncMethod · 0.65

Tested by

no test coverage detected