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

Function TestCyrillicAttributesInXPath

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

Source from the content-addressed store, hash-verified

92}
93
94func TestCyrillicAttributesInXPath(t *testing.T) {
95 doc := createNode("", RootNode)
96 div := doc.createChildNode("div", ElementNode)
97 div.addAttribute("язык", "русский")
98 div.lines = 1
99 test_xpath_elements(t, doc, `//div[@язык='русский']`, 1)
100}
101
102func TestGreekAttributesInXPath(t *testing.T) {
103 doc := createNode("", RootNode)

Callers

nothing calls this directly

Calls 4

createNodeFunction · 0.85
test_xpath_elementsFunction · 0.85
createChildNodeMethod · 0.80
addAttributeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…