(t *testing.T)
| 61 | } |
| 62 | |
| 63 | func TestSelectorCache(t *testing.T) { |
| 64 | SelectorCacheMaxEntries = 2 |
| 65 | for i := 1; i <= 3; i++ { |
| 66 | getQuery(fmt.Sprintf("//a[position()=%d]", i)) |
| 67 | } |
| 68 | getQuery("//a[position()=3]") |
| 69 | |
| 70 | } |
| 71 | |
| 72 | func TestLoadURL(t *testing.T) { |
| 73 | ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…