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

Function TestSortHeaders

utils_test.go:35–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func TestSortHeaders(t *testing.T) {
36 testSortHeaders(t, "br, gzip, deflate", "br,deflate,gzip")
37 testSortHeaders(t, "br, gzip, deflate", "br,deflate,gzip")
38 testSortHeaders(t, "gzip,br,deflate", "br,deflate,gzip")
39 testSortHeaders(t, "gzip", "gzip")
40 testSortHeaders(t, "deflate, gzip, br", "br,deflate,gzip")
41}
42
43func testSortHeaders(t *testing.T, h, expectedH string) {
44 t.Helper()

Callers

nothing calls this directly

Calls 1

testSortHeadersFunction · 0.85

Tested by

no test coverage detected