MCPcopy
hub / github.com/gofiber/fiber / Test_Client_SetRootCertificate

Function Test_Client_SetRootCertificate

client/client_test.go:1985–1990  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1983}
1984
1985func Test_Client_SetRootCertificate(t *testing.T) {
1986 t.Parallel()
1987
1988 client := New().SetRootCertificate("../.github/testdata/ssl.pem")
1989 require.NotNil(t, client.TLSConfig().RootCAs)
1990}
1991
1992func Test_Client_SetRootCertificateFromString(t *testing.T) {
1993 t.Parallel()

Callers

nothing calls this directly

Calls 3

SetRootCertificateMethod · 0.80
NewFunction · 0.70
TLSConfigMethod · 0.65

Tested by

no test coverage detected