MCPcopy Create free account
hub / github.com/antchfx/xpath / Test_func_name

Function Test_func_name

xpath_function_test.go:23–27  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21}
22
23func Test_func_name(t *testing.T) {
24 test_xpath_eval(t, html_example, `name(//html/@lang)`, "lang")
25 test_xpath_eval(t, html_example, `name(html/head/title)`, "title")
26 test_xpath_count(t, html_example, `//*[name() = "li"]`, 3)
27}
28
29func Test_func_not(t *testing.T) {
30 //test_xpath_eval(t, empty_example, `not(0)`, true)

Callers

nothing calls this directly

Calls 2

test_xpath_evalFunction · 0.85
test_xpath_countFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…