MCPcopy Create free account
hub / github.com/antchfx/htmlquery / TestSelectorCache

Function TestSelectorCache

query_test.go:63–70  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

61}
62
63func 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
72func TestLoadURL(t *testing.T) {
73 ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Callers

nothing calls this directly

Calls 1

getQueryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…