(t *testing.T, q string, expected bool)
| 62 | } |
| 63 | |
| 64 | func 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 | |
| 72 | func TestGetQuerySnippetGET(t *testing.T) { |
| 73 | req, err := http.NewRequest("GET", "", nil) |
no test coverage detected