(t *testing.T)
| 229 | } |
| 230 | |
| 231 | func TestMustCompile(t *testing.T) { |
| 232 | expr := MustCompile("//") |
| 233 | assertTrue(t, expr != nil) |
| 234 | |
| 235 | if wanted := (nopQuery{}); expr.q != wanted { |
| 236 | t.Fatalf("wanted nopQuery object but got %s", expr) |
| 237 | } |
| 238 | iter := expr.Select(createNavigator(html_example)) |
| 239 | if iter.MoveNext() { |
| 240 | t.Fatal("should be an empty node list but got one") |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | func Test_plusFunc(t *testing.T) { |
| 245 | // 1+1 |
nothing calls this directly
no test coverage detected
searching dependent graphs…