MCPcopy Index your code
hub / github.com/ContentSquare/chproxy / testCanCacheQuery

Function testCanCacheQuery

utils_test.go:64–70  ·  view source on GitHub ↗
(t *testing.T, q string, expected bool)

Source from the content-addressed store, hash-verified

62}
63
64func testCanCacheQuery(t *testing.T, q string, expected bool) {
65 t.Helper()
66 canCache := canCacheQuery([]byte(q))
67 if canCache != expected {
68 t.Fatalf("unexpected result %v; expecting %v", canCache, expected)
69 }
70}
71
72func TestGetQuerySnippetGET(t *testing.T) {
73 req, err := http.NewRequest("GET", "", nil)

Callers 1

TestCanCacheQueryFunction · 0.85

Calls 1

canCacheQueryFunction · 0.85

Tested by

no test coverage detected