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

Function TestDirectiveNode

node_test.go:798–804  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

796}
797
798func TestDirectiveNode(t *testing.T) {
799 expected := `<!DOCTYPE people_list SYSTEM "example.dtd">`
800 n := &Node{Data: `DOCTYPE people_list SYSTEM "example.dtd"`, Type: NotationNode}
801 if v := n.OutputXML(true); expected != v {
802 t.Errorf(`expected "%s", obtained "%s"`, expected, v)
803 }
804}
805
806func TestOutputXMLWithSingleQuotes(t *testing.T) {
807 s := `<?xml version='1.0' encoding='utf-8'?><a><b c='d'></b></a>`

Callers

nothing calls this directly

Calls 1

OutputXMLMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…