(t *testing.T)
| 483 | } |
| 484 | |
| 485 | func TestEmbeddedComment(t *testing.T) { |
| 486 | s := `<a>123<!-- test -->456</a>` |
| 487 | |
| 488 | doc := NewDocument() |
| 489 | err := doc.ReadFromString(s) |
| 490 | if err != nil { |
| 491 | t.Fatal("etree: incorrect ReadFromString result") |
| 492 | } |
| 493 | |
| 494 | a := doc.SelectElement("a") |
| 495 | checkStrEq(t, a.Text(), "123456") |
| 496 | } |
| 497 | |
| 498 | func TestDocumentReadHTMLEntities(t *testing.T) { |
| 499 | s := `<store> |
nothing calls this directly
no test coverage detected