(t *testing.T)
| 33 | } |
| 34 | |
| 35 | func 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 | |
| 43 | func testSortHeaders(t *testing.T, h, expectedH string) { |
| 44 | t.Helper() |
nothing calls this directly
no test coverage detected