MCPcopy Create free account
hub / github.com/pquerna/ffjson / TestCaseSensitiveUnmarshalSimple

Function TestCaseSensitiveUnmarshalSimple

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

Source from the content-addressed store, hash-verified

771}
772
773func TestCaseSensitiveUnmarshalSimple(t *testing.T) {
774 base := Tint{}
775 ff := Xint{}
776
777 err := json.Unmarshal([]byte(`{"x": 123213}`), &base)
778 if err != nil {
779 t.Fatalf("UnmarshalJSON: %v", err)
780 }
781
782 err = json.Unmarshal([]byte(`{"x": 123213}`), &ff)
783 if err != nil {
784 t.Fatalf("UnmarshalJSON: %v", err)
785 }
786 require.EqualValues(t, base, ff, "json.Unmarshal of Record with mixed case JSON")
787}
788
789func TestEmbedded(t *testing.T) {
790 a := TEmbeddedStructures{}

Callers

nothing calls this directly

Calls 1

FatalfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…