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

Function TestCombineWriteSyncers

writer_test.go:254–259  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

252}
253
254func TestCombineWriteSyncers(t *testing.T) {
255 tw := &testWriter{"test", t}
256 w := CombineWriteSyncers(tw)
257 _, err := w.Write([]byte("test"))
258 assert.NoError(t, err, "Unexpected write error.")
259}
260
261func fileExists(name string) bool {
262 if _, err := os.Stat(name); os.IsNotExist(err) {

Callers

nothing calls this directly

Calls 2

CombineWriteSyncersFunction · 0.85
WriteMethod · 0.65

Tested by

no test coverage detected