MCPcopy Index your code
hub / github.com/imroc/req / TestSetCommonHeader

Function TestSetCommonHeader

client_test.go:189–192  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

187}
188
189func TestSetCommonHeader(t *testing.T) {
190 c := tc().SetCommonHeader("my-header", "my-value")
191 tests.AssertEqual(t, "my-value", c.Headers.Get("my-header"))
192}
193
194func TestSetCommonHeaderNonCanonical(t *testing.T) {
195 c := tc().SetCommonHeaderNonCanonical("my-Header", "my-value")

Callers

nothing calls this directly

Calls 4

AssertEqualFunction · 0.92
tcFunction · 0.85
SetCommonHeaderMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…