MCPcopy Create free account
hub / github.com/go-json-experiment/json / TestPointerReceiver

Function TestPointerReceiver

v1/diff_test.go:598–666  ·  view source on GitHub ↗

In v1, the implementation is inconsistent about whether it calls MarshalJSON and UnmarshalJSON methods declared on pointer receivers when it has an unaddressable value (per reflect.Value.CanAddr) on hand. When marshaling, it never boxes the value on the heap to make it addressable, while it sometime

(t *testing.T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

MarshalFunction · 0.92
UnmarshalFunction · 0.92
CallCheckTypeAlias · 0.85
JoinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…