MCPcopy Create free account
hub / github.com/antchfx/xmlquery / testOutputXML

Function testOutputXML

parse_test.go:442–446  ·  view source on GitHub ↗
(t *testing.T, msg string, expectedXML string, n *Node)

Source from the content-addressed store, hash-verified

440}
441
442func testOutputXML(t *testing.T, msg string, expectedXML string, n *Node) {
443 if n.OutputXMLWithOptions(WithOutputSelf(), WithoutPreserveSpace()) != expectedXML {
444 t.Fatalf("%s, expected XML: '%s', actual: '%s'", msg, expectedXML, n.OutputXML(true))
445 }
446}
447
448func TestStreamParser_Success1(t *testing.T) {
449 s := `

Callers 5

TestCDATAFunction · 0.85
TestXMLPreservationFunction · 0.85

Calls 4

WithOutputSelfFunction · 0.85
WithoutPreserveSpaceFunction · 0.85
OutputXMLWithOptionsMethod · 0.80
OutputXMLMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…