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

Function TestOmitLast

tests/encode_test.go:64–74  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

62}
63
64func TestOmitLast(t *testing.T) {
65 var o OmitLast
66
67 got, err := json.MarshalIndent(&o, "", " ")
68 if err != nil {
69 t.Fatal(err)
70 }
71 if got := string(got); got != omitLastExpected {
72 t.Errorf(" got: %s\nwant: %s\n", got, omitLastExpected)
73 }
74}
75
76func TestStringTag(t *testing.T) {
77 var s StringTag

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…