(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func 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 | |
| 40 | func TestNoExported(t *testing.T) { |
| 41 | var o NoExported |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…