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

Function Test_func_count

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

Source from the content-addressed store, hash-verified

58}
59
60func Test_func_count(t *testing.T) {
61 test_xpath_eval(t, book_example, `count(//book)`, float64(4))
62 test_xpath_eval(t, book_example, `count(//book[3]/author)`, float64(5))
63}
64
65func Test_func_ends_with(t *testing.T) {
66 test_xpath_eval(t, empty_example, `ends-with("tattoo", "tattoo")`, true)

Callers

nothing calls this directly

Calls 1

test_xpath_evalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…