(t *testing.T)
| 61 | } |
| 62 | |
| 63 | func TestAttributes(t *testing.T) { |
| 64 | test_xpath_tags(t, html_example.FirstChild, "@*", "lang") |
| 65 | test_xpath_count(t, employee_example, `//@*`, 9) |
| 66 | test_xpath_values(t, employee_example, `//@discipline`, "web", "DBA", "appdev") |
| 67 | test_xpath_count(t, employee_example, `//employee/@id`, 3) |
| 68 | } |
| 69 | |
| 70 | func TestExpressions(t *testing.T) { |
| 71 | test_xpath_elements(t, book_example, `//book[@category = "cooking"] | //book[@category = "children"]`, 3, 9) |
nothing calls this directly
no test coverage detected
searching dependent graphs…