Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/uber-go/zap
/ Encode
Method
Encode
zapcore/json_encoder_test.go:224–227 ·
view source on GitHub ↗
(obj interface{})
Source
from the content-addressed store, hash-verified
222
}
223
224
func
(enc *emptyReflectedEncoder) Encode(obj
interface
{}) error {
225
_, err := enc.writer.Write([]byte(
"{}"
))
226
return
err
227
}
228
229
func
TestJSONCustomReflectedEncoder(t *testing.T) {
230
tests := []
struct
{
Callers
nothing calls this directly
Calls
1
Write
Method · 0.65
Tested by
no test coverage detected