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

Function TestMapDeterminism

v1/diff_test.go:682–704  ·  view source on GitHub ↗

In v1, maps are marshaled in a deterministic order. In v2, maps are marshaled in a non-deterministic order. The reason for the change is that v2 prioritizes performance and the guarantee that marshaling operates primarily in a streaming manner. The v2 API provides jsontext.Value.Canonicalize if st

(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 2

MarshalFunction · 0.92
JoinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…