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

Function TestInsecureSkipVerify

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

Source from the content-addressed store, hash-verified

355}
356
357func TestInsecureSkipVerify(t *testing.T) {
358 c := tc().EnableInsecureSkipVerify()
359 tests.AssertEqual(t, true, c.TLSClientConfig.InsecureSkipVerify)
360
361 c.DisableInsecureSkipVerify()
362 tests.AssertEqual(t, false, c.TLSClientConfig.InsecureSkipVerify)
363}
364
365func TestSetTLSClientConfig(t *testing.T) {
366 config := &tls.Config{InsecureSkipVerify: true}

Callers

nothing calls this directly

Calls 4

AssertEqualFunction · 0.92
tcFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…