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

Function TestSetRootCertFromFile

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

Source from the content-addressed store, hash-verified

464}
465
466func TestSetRootCertFromFile(t *testing.T) {
467 c := tc().SetRootCertsFromFile(tests.GetTestFilePath("sample-root.pem"))
468 tests.AssertEqual(t, true, c.TLSClientConfig.RootCAs != nil)
469}
470
471func TestSetRootCertFromString(t *testing.T) {
472 c := tc().SetRootCertFromString(string(getTestFileContent(t, "sample-root.pem")))

Callers

nothing calls this directly

Calls 4

GetTestFilePathFunction · 0.92
AssertEqualFunction · 0.92
tcFunction · 0.85
SetRootCertsFromFileMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…