(t *testing.T)
| 318 | } |
| 319 | |
| 320 | func TestMissingNamespace(t *testing.T) { |
| 321 | s := `<root> |
| 322 | <myns:child id="1">value 1</myns:child> |
| 323 | <myns:child id="2">value 2</myns:child> |
| 324 | </root>` |
| 325 | _, err := Parse(strings.NewReader(s)) |
| 326 | if err == nil { |
| 327 | t.Fatal("err is nil, want got invalid XML document") |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | func TestTooNested(t *testing.T) { |
| 332 | s := `<?xml version="1.0" encoding="UTF-8"?> |
nothing calls this directly
no test coverage detected
searching dependent graphs…