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

Function TestLatinAttributesInXPath

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

Source from the content-addressed store, hash-verified

84}
85
86func TestLatinAttributesInXPath(t *testing.T) {
87 doc := createNode("", RootNode)
88 div := doc.createChildNode("div", ElementNode)
89 div.addAttribute("language", "english")
90 div.lines = 1
91 test_xpath_elements(t, doc, `//div[@language='english']`, 1)
92}
93
94func TestCyrillicAttributesInXPath(t *testing.T) {
95 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…