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

Function TestSetCertFromFile

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

Source from the content-addressed store, hash-verified

479}
480
481func TestSetCertFromFile(t *testing.T) {
482 c := tc().SetCertFromFile(
483 tests.GetTestFilePath("sample-client.pem"),
484 tests.GetTestFilePath("sample-client-key.pem"),
485 )
486 tests.AssertEqual(t, true, len(c.TLSClientConfig.Certificates) == 1)
487}
488
489func TestSetOutputDirectory(t *testing.T) {
490 outFile := "test_output_dir"

Callers

nothing calls this directly

Calls 4

GetTestFilePathFunction · 0.92
AssertEqualFunction · 0.92
tcFunction · 0.85
SetCertFromFileMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…