(t *testing.T)
| 726 | } |
| 727 | |
| 728 | func TestOutputXMLWithOptions(t *testing.T) { |
| 729 | s := `<?xml version="1.0" encoding="utf-8"?><node><empty></empty></node>` |
| 730 | expected := `<?xml version="1.0" encoding="utf-8"?><node><empty/></node>` |
| 731 | |
| 732 | doc, _ := Parse(strings.NewReader(s)) |
| 733 | result := doc.OutputXMLWithOptions(WithEmptyTagSupport()) |
| 734 | t.Log(result) |
| 735 | if result != expected { |
| 736 | t.Errorf("output was not expected. expected %v but got %v", expected, result) |
| 737 | } |
| 738 | } |
| 739 | |
| 740 | func TestOutputXMLWithPreserveSpaceOption(t *testing.T) { |
| 741 | s := `<?xml version="1.0" encoding="utf-8"?> |
nothing calls this directly
no test coverage detected
searching dependent graphs…