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

Function TestOmitEmptyAll

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

Source from the content-addressed store, hash-verified

26}
27
28func TestOmitEmptyAll(t *testing.T) {
29 var o OmitAll
30
31 got, err := json.MarshalIndent(&o, "", " ")
32 if err != nil {
33 t.Fatal(err)
34 }
35 if got := string(got); got != omitAllExpected {
36 t.Errorf(" got: %s\nwant: %s\n", got, omitAllExpected)
37 }
38}
39
40func TestNoExported(t *testing.T) {
41 var o NoExported

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…