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

Struct testWriter

writer_test.go:227–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227type testWriter struct {
228 expected string
229 t testing.TB
230}
231
232func (w *testWriter) Write(actual []byte) (int, error) {
233 assert.Equal(w.t, []byte(w.expected), actual, "Unexpected write error.")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected