MCPcopy
hub / github.com/valyala/fasthttp / testRequestHeaderHasAcceptEncoding

Function testRequestHeaderHasAcceptEncoding

header_test.go:1338–1345  ·  view source on GitHub ↗
(t *testing.T, ae, v string, resultExpected bool)

Source from the content-addressed store, hash-verified

1336}
1337
1338func testRequestHeaderHasAcceptEncoding(t *testing.T, ae, v string, resultExpected bool) {
1339 var h RequestHeader
1340 h.Set(HeaderAcceptEncoding, ae)
1341 result := h.HasAcceptEncoding(v)
1342 if result != resultExpected {
1343 t.Fatalf("unexpected result in HasAcceptEncoding(%q, %q): %v. Expecting %v", ae, v, result, resultExpected)
1344 }
1345}
1346
1347func TestVisitHeaderParams(t *testing.T) {
1348 t.Parallel()

Callers 1

Calls 2

SetMethod · 0.95
HasAcceptEncodingMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…