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

Function TestChineseCharactersExpression

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

Source from the content-addressed store, hash-verified

144}
145
146func TestChineseCharactersExpression(t *testing.T) {
147 doc := createNode("", RootNode)
148 n := doc.createChildNode("中文", ElementNode)
149 n.createChildNode("你好世界", TextNode)
150 test_xpath_values(t, doc, "//中文", "你好世界")
151}
152
153func TestBUG_104(t *testing.T) {
154 // BUG https://github.com/antchfx/xpath/issues/104

Callers

nothing calls this directly

Calls 3

createNodeFunction · 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…