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

Function loadXML

query_test.go:155–161  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

153}
154
155func loadXML(s string) *Node {
156 node, err := Parse(strings.NewReader(s))
157 if err != nil {
158 panic(err)
159 }
160 return node
161}
162
163func TestMissingTextNodes(t *testing.T) {
164 doc := loadXML(`

Callers 4

query_test.goFile · 0.85
TestXPathCdUpFunction · 0.85
TestAttributesNamespacesFunction · 0.85
TestMissingTextNodesFunction · 0.85

Calls 1

ParseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…