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

Function TestSetLogger

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

Source from the content-addressed store, hash-verified

261}
262
263func TestSetLogger(t *testing.T) {
264 l := createDefaultLogger()
265 c := tc().SetLogger(l)
266 tests.AssertEqual(t, l, c.log)
267
268 c.SetLogger(nil)
269 tests.AssertEqual(t, &disableLogger{}, c.log)
270}
271
272func TestSetScheme(t *testing.T) {
273 c := tc().SetScheme("https")

Callers

nothing calls this directly

Calls 4

AssertEqualFunction · 0.92
createDefaultLoggerFunction · 0.85
tcFunction · 0.85
SetLoggerMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…