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

Function TestOmitFirst

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

Source from the content-addressed store, hash-verified

50}
51
52func TestOmitFirst(t *testing.T) {
53 var o OmitFirst
54
55 got, err := json.MarshalIndent(&o, "", " ")
56 if err != nil {
57 t.Fatal(err)
58 }
59 if got := string(got); got != omitFirstExpected {
60 t.Errorf(" got: %s\nwant: %s\n", got, omitFirstExpected)
61 }
62}
63
64func TestOmitLast(t *testing.T) {
65 var o OmitLast

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…