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

Function Test_func_string_join

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

Source from the content-addressed store, hash-verified

114}
115
116func Test_func_string_join(t *testing.T) {
117 //(t, empty_example, `string-join(('Now', 'is', 'the', 'time', '...'), '')`, "Now is the time ...")
118 test_xpath_eval(t, empty_example, `string-join("some text", ";")`, "some text")
119 test_xpath_eval(t, book_example, `string-join(//book/@category, ";")`, "cooking;children;web;web")
120}
121
122func Test_func_string_length(t *testing.T) {
123 test_xpath_eval(t, empty_example, `string-length("Harp not on that string, madam; that is past.")`, float64(45))

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…