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

Function TestNonEnglishExpression

xpath_expression_test.go:135–144  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

133}
134
135func TestNonEnglishExpression(t *testing.T) {
136 doc := createNode("", RootNode)
137 n_1 := doc.createChildNode("Σειρά", ElementNode)
138 n_1.lines = 1
139 n_2 := n_1.createChildNode("ελληνικά", ElementNode)
140 n_2.lines = 2
141 n_2.createChildNode("hello", TextNode)
142 test_xpath_elements(t, doc, "//Σειρά", 1)
143 test_xpath_values(t, doc, "//Σειρά/ελληνικά", "hello")
144}
145
146func TestChineseCharactersExpression(t *testing.T) {
147 doc := createNode("", RootNode)

Callers

nothing calls this directly

Calls 4

createNodeFunction · 0.85
test_xpath_elementsFunction · 0.85
test_xpath_valuesFunction · 0.85
createChildNodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…