MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / testSortHeaders

Function testSortHeaders

utils_test.go:43–49  ·  view source on GitHub ↗
(t *testing.T, h, expectedH string)

Source from the content-addressed store, hash-verified

41}
42
43func testSortHeaders(t *testing.T, h, expectedH string) {
44 t.Helper()
45 s := sortHeader(h)
46 if s != expectedH {
47 t.Fatalf("unexpected result %q; expecting %q", s, expectedH)
48 }
49}
50
51func TestCanCacheQuery(t *testing.T) {
52 testCanCacheQuery(t, "", false)

Callers 1

TestSortHeadersFunction · 0.85

Calls 1

sortHeaderFunction · 0.85

Tested by

no test coverage detected