(t *testing.T, q, expectedQ string)
| 25 | } |
| 26 | |
| 27 | func testSkipLeadingComments(t *testing.T, q, expectedQ string) { |
| 28 | t.Helper() |
| 29 | s := skipLeadingComments([]byte(q)) |
| 30 | if string(s) != expectedQ { |
| 31 | t.Fatalf("unexpected result %q; expecting %q", s, expectedQ) |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func TestSortHeaders(t *testing.T) { |
| 36 | testSortHeaders(t, "br, gzip, deflate", "br,deflate,gzip") |
no test coverage detected