(t *testing.T)
| 74 | } |
| 75 | |
| 76 | func TestStringTag(t *testing.T) { |
| 77 | var s StringTag |
| 78 | s.BoolStr = true |
| 79 | s.IntStr = 42 |
| 80 | s.StrStr = "xzbit" |
| 81 | got, err := json.MarshalIndent(&s, "", " ") |
| 82 | if err != nil { |
| 83 | t.Fatal(err) |
| 84 | } |
| 85 | if got := string(got); got != stringTagExpected { |
| 86 | t.Fatalf(" got: %s\nwant: %s\n", got, stringTagExpected) |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | func TestUnsupportedValues(t *testing.T) { |
| 91 | for _, v := range unsupportedValues { |
nothing calls this directly
no test coverage detected
searching dependent graphs…