(t testing.TB, root *TNode, expr string, expected ...string)
| 54 | } |
| 55 | |
| 56 | func test_xpath_values(t testing.TB, root *TNode, expr string, expected ...string) { |
| 57 | result := selectNodes(root, expr) |
| 58 | assertEqual(t, len(expected), len(result)) |
| 59 | |
| 60 | for i := 0; i < len(expected); i++ { |
| 61 | assertEqual(t, expected[i], result[i].Value()) |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | func test_xpath_tags(t *testing.T, root *TNode, expr string, expected ...string) { |
| 66 | result := selectNodes(root, expr) |
no test coverage detected
searching dependent graphs…