(t *testing.T)
| 388 | } |
| 389 | |
| 390 | func TestSyntax(t *testing.T) { |
| 391 | for i := range xmlInput { |
| 392 | d := NewDecoder(strings.NewReader(xmlInput[i])) |
| 393 | var err error |
| 394 | for _, err = d.Token(); err == nil; _, err = d.Token() { |
| 395 | } |
| 396 | if _, ok := err.(*SyntaxError); !ok { |
| 397 | t.Fatalf(`xmlInput "%s": expected SyntaxError not received`, xmlInput[i]) |
| 398 | } |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | type allScalars struct { |
| 403 | True1 bool |
nothing calls this directly
no test coverage detected