(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func Test_func_contains(t *testing.T) { |
| 51 | test_xpath_eval(t, empty_example, `contains("tattoo", "t")`, true) |
| 52 | test_xpath_eval(t, empty_example, `contains("tattoo", "T")`, false) |
| 53 | test_xpath_eval(t, empty_example, `contains("tattoo", "ttt")`, false) |
| 54 | //test_xpath_eval(t, empty_example, `contains("", ())`, true) |
| 55 | test_xpath_elements(t, book_example, `//book[contains(title, "Potter")]`, 9) |
| 56 | test_xpath_elements(t, book_example, `//book[contains(year, "2005")]`, 3, 9) |
| 57 | assertPanic(t, func() { selectNode(html_example, "//*[contains(0, 0)]") }) |
| 58 | } |
| 59 | |
| 60 | func Test_func_count(t *testing.T) { |
| 61 | test_xpath_eval(t, book_example, `count(//book)`, float64(4)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…