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

Method Called

internal/ztest/writer.go:49–51  ·  view source on GitHub ↗

Called reports whether the Sync method was called.

()

Source from the content-addressed store, hash-verified

47
48// Called reports whether the Sync method was called.
49func (s *Syncer) Called() bool {
50 return s.called
51}
52
53// A Discarder sends all writes to io.Discard.
54type Discarder struct{ Syncer }

Callers 6

TestSyncerFunction · 0.95
TestLoggerWriteFailureFunction · 0.80
TestIOCoreSyncsOutputFunction · 0.80
TestAddSyncWriteSyncerFunction · 0.80

Calls

no outgoing calls

Tested by 6

TestSyncerFunction · 0.76
TestLoggerWriteFailureFunction · 0.64
TestIOCoreSyncsOutputFunction · 0.64
TestAddSyncWriteSyncerFunction · 0.64