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

Function TestCaseSensitivity

v1/diff_test.go:51–113  ·  view source on GitHub ↗

In v1, unmarshal matches struct fields using a case-insensitive match. In v2, unmarshal matches struct fields using a case-sensitive match. Case-insensitive matching is a surprising default and incurs significant performance cost when unmarshaling unknown fields. In v2, we can opt into v1-like beha

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

UnmarshalFunction · 0.92
BoolMethod · 0.80
JoinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…