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

Function TestEmptyStructs

v1/diff_test.go:1049–1096  ·  view source on GitHub ↗

In v1, non-empty structs without any JSON serializable fields are permitted. In v2, non-empty structs without any JSON serializable fields are rejected. The purpose of this change is to avoid a common pitfall for new users where they expect JSON serialization to handle unexported fields. However, t

(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

MarshalFunction · 0.92
UnmarshalFunction · 0.92
addrFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…