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

Function testNode

node_test.go:46–50  ·  view source on GitHub ↗
(t *testing.T, n *Node, expected string)

Source from the content-addressed store, hash-verified

44}
45
46func testNode(t *testing.T, n *Node, expected string) {
47 if n.Data != expected {
48 t.Fatalf("expected node name is %s,but got %s", expected, n.Data)
49 }
50}
51
52func testAttr(t *testing.T, n *Node, name, expected string) {
53 for _, attr := range n.Attr {

Callers 2

TestParseFunction · 0.85
TestTooNestedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…