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

Function testSkipLeadingComments

utils_test.go:27–33  ·  view source on GitHub ↗
(t *testing.T, q, expectedQ string)

Source from the content-addressed store, hash-verified

25}
26
27func 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
35func TestSortHeaders(t *testing.T) {
36 testSortHeaders(t, "br, gzip, deflate", "br,deflate,gzip")

Callers 1

TestSkipLeadingCommentsFunction · 0.85

Calls 1

skipLeadingCommentsFunction · 0.85

Tested by

no test coverage detected