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

Function TestSetCerts

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

Source from the content-addressed store, hash-verified

474}
475
476func TestSetCerts(t *testing.T) {
477 c := tc().SetCerts(tls.Certificate{}, tls.Certificate{})
478 tests.AssertEqual(t, true, len(c.TLSClientConfig.Certificates) == 2)
479}
480
481func TestSetCertFromFile(t *testing.T) {
482 c := tc().SetCertFromFile(

Callers

nothing calls this directly

Calls 3

AssertEqualFunction · 0.92
tcFunction · 0.85
SetCertsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…