(t *testing.T)
| 99 | } |
| 100 | |
| 101 | func Test_attribute(t *testing.T) { |
| 102 | test_xpath_values(t, employee_example, `//attribute::id`, "1", "2", "3") |
| 103 | test_xpath_count(t, employee_example, `//attribute::*`, 9) |
| 104 | |
| 105 | // test failed |
| 106 | //test_xpath_tags(t, employee_example, `//attribute::*[1]`, "id", "discipline", "id", "from", "discipline", "id", "discipline") |
| 107 | // test failed(random): the return values is expected but the order of value is random. |
| 108 | //test_xpath_tags(t, employee_example, `//attribute::*`, "id", "discipline", "experience", "id", "from", "discipline", "experience", "id", "discipline") |
| 109 | |
| 110 | } |
| 111 | |
| 112 | func Test_following(t *testing.T) { |
| 113 | test_xpath_elements(t, employee_example, `//employee[@id=1]/following::*`, 8, 9, 10, 11, 13, 14, 15, 16) |
nothing calls this directly
no test coverage detected
searching dependent graphs…