(t *testing.T)
| 152 | } |
| 153 | |
| 154 | func TestAnonymousNonstruct(t *testing.T) { |
| 155 | var i IntType = 11 |
| 156 | a := MyStruct{i} |
| 157 | const want = `{"IntType":11}` |
| 158 | |
| 159 | b, err := json.Marshal(a) |
| 160 | if err != nil { |
| 161 | t.Fatalf("Marshal: %v", err) |
| 162 | } |
| 163 | if got := string(b); got != want { |
| 164 | t.Errorf("got %q, want %q", got, want) |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | // Issue 5245. |
| 169 | func TestEmbeddedBug(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…