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

Function TestSetCommonBasicAuth

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

Source from the content-addressed store, hash-verified

213}
214
215func TestSetCommonBasicAuth(t *testing.T) {
216 c := tc().SetCommonBasicAuth("imroc", "123456")
217 tests.AssertEqual(t, "Basic aW1yb2M6MTIzNDU2", c.Headers.Get("Authorization"))
218}
219
220func TestSetCommonBearerAuthToken(t *testing.T) {
221 c := tc().SetCommonBearerAuthToken("123456")

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…