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

Function TestSetTimeout

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

Source from the content-addressed store, hash-verified

255}
256
257func TestSetTimeout(t *testing.T) {
258 timeout := 100 * time.Second
259 c := tc().SetTimeout(timeout)
260 tests.AssertEqual(t, timeout, c.httpClient.Timeout)
261}
262
263func TestSetLogger(t *testing.T) {
264 l := createDefaultLogger()

Callers

nothing calls this directly

Calls 3

AssertEqualFunction · 0.92
tcFunction · 0.85
SetTimeoutMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…