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

Function testValue

node_test.go:61–69  ·  view source on GitHub ↗
(t *testing.T, val, expected interface{})

Source from the content-addressed store, hash-verified

59}
60
61func testValue(t *testing.T, val, expected interface{}) {
62 if val == expected {
63 return
64 }
65 if reflect.DeepEqual(val, expected) {
66 return
67 }
68 t.Fatalf("expected value is %+v, but got %+v", expected, val)
69}
70
71func testTrue(t *testing.T, v bool) {
72 if v {

Callers 8

TestParseFunction · 0.85
TestCharDataFunction · 0.85
verifyNodePointersFunction · 0.85
TestAddAttrFunction · 0.85
TestSetAttrFunction · 0.85
TestRemoveAttrFunction · 0.85
TestRemoveFromTreeFunction · 0.85
TestAddImmediateSiblingFunction · 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…