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

Method MarshalLogObject

array_test.go:197–200  ·  view source on GitHub ↗
(enc zapcore.ObjectEncoder)

Source from the content-addressed store, hash-verified

195}
196
197func (o *fakeObject) MarshalLogObject(enc zapcore.ObjectEncoder) error {
198 enc.AddString("value", o.value)
199 return o.err
200}
201
202func TestObjectsAndObjectValues_marshalError(t *testing.T) {
203 t.Parallel()

Callers

nothing calls this directly

Calls 1

AddStringMethod · 0.65

Tested by

no test coverage detected