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

Function TestSetRootCertFromString

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

Source from the content-addressed store, hash-verified

469}
470
471func TestSetRootCertFromString(t *testing.T) {
472 c := tc().SetRootCertFromString(string(getTestFileContent(t, "sample-root.pem")))
473 tests.AssertEqual(t, true, c.TLSClientConfig.RootCAs != nil)
474}
475
476func TestSetCerts(t *testing.T) {
477 c := tc().SetCerts(tls.Certificate{}, tls.Certificate{})

Callers

nothing calls this directly

Calls 4

AssertEqualFunction · 0.92
tcFunction · 0.85
getTestFileContentFunction · 0.85
SetRootCertFromStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…