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

Function Test_func_string

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

Source from the content-addressed store, hash-verified

96}
97
98func Test_func_string(t *testing.T) {
99 test_xpath_eval(t, empty_example, `string(1.23)`, "1.23")
100 test_xpath_eval(t, empty_example, `string(3)`, "3")
101 test_xpath_eval(t, book_example, `string(//book/@category)`, "cooking")
102}
103func Test_func_string_empty(t *testing.T) {
104 // https://github.com/antchfx/xpath/issues/113
105 // Create the equivalent of <div>hi</div> using TNode

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…