MCPcopy
hub / github.com/pquerna/ffjson / TestInlineStructs

Function TestInlineStructs

tests/ff_test.go:849–854  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

847}
848
849func TestInlineStructs(t *testing.T) {
850 a := TInlineStructs{}
851 b := XInlineStructs{}
852 testSameMarshal(t, &a, &b)
853 testCycle(t, &a, &b)
854}
855
856// This tests that we behave the same way as encoding/json.
857// That means that if there is more than one field that has the same name

Callers

nothing calls this directly

Calls 2

testSameMarshalFunction · 0.85
testCycleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…