MCPcopy Create free account
hub / github.com/imroc/req / TestSetCommonBearerAuthToken

Function TestSetCommonBearerAuthToken

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

Source from the content-addressed store, hash-verified

218}
219
220func TestSetCommonBearerAuthToken(t *testing.T) {
221 c := tc().SetCommonBearerAuthToken("123456")
222 tests.AssertEqual(t, "Bearer 123456", c.Headers.Get("Authorization"))
223}
224
225func TestSetUserAgent(t *testing.T) {
226 c := tc().SetUserAgent("test")

Callers

nothing calls this directly

Calls 4

AssertEqualFunction · 0.92
tcFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…