(t *testing.T)
| 714 | } |
| 715 | |
| 716 | func TestOutputXMLWithDefaultOptions(t *testing.T) { |
| 717 | s := `<?xml version="1.0" encoding="utf-8"?><node><empty></empty></node>` |
| 718 | expected := `<?xml version="1.0" encoding="utf-8"?><node><empty></empty></node>` |
| 719 | |
| 720 | doc, _ := Parse(strings.NewReader(s)) |
| 721 | result := doc.OutputXMLWithOptions() |
| 722 | t.Log(result) |
| 723 | if result != expected { |
| 724 | t.Errorf("output was not expected. expected %v but got %v", expected, result) |
| 725 | } |
| 726 | } |
| 727 | |
| 728 | func TestOutputXMLWithOptions(t *testing.T) { |
| 729 | s := `<?xml version="1.0" encoding="utf-8"?><node><empty></empty></node>` |
nothing calls this directly
no test coverage detected
searching dependent graphs…