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

Function TestSetUserAgent

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

Source from the content-addressed store, hash-verified

223}
224
225func TestSetUserAgent(t *testing.T) {
226 c := tc().SetUserAgent("test")
227 tests.AssertEqual(t, "test", c.Headers.Get(header.UserAgent))
228}
229
230func TestAutoDecode(t *testing.T) {
231 c := tc().DisableAutoDecode()

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…