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

Method WithMarkFailed

zaptest/logger.go:133–136  ·  view source on GitHub ↗

WithMarkFailed returns a copy of this TestingWriter with markFailed set to the provided value.

(v bool)

Source from the content-addressed store, hash-verified

131// WithMarkFailed returns a copy of this TestingWriter with markFailed set to
132// the provided value.
133func (w TestingWriter) WithMarkFailed(v bool) TestingWriter {
134 w.markFailed = v
135 return w
136}
137
138// Write writes bytes from p to the underlying testing.TB.
139func (w TestingWriter) Write(p []byte) (n int, err error) {

Callers 1

NewLoggerFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected