MCPcopy
hub / github.com/cloudflare/cloudflared / TestFindOriginCert_Missing

Function TestFindOriginCert_Missing

credentials/origin_cert_test.go:73–78  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

71}
72
73func TestFindOriginCert_Missing(t *testing.T) {
74 dir := t.TempDir()
75 certPath := filepath.Join(dir, originCertFile)
76 _, err := FindOriginCert(certPath, &nopLog)
77 require.Error(t, err)
78}
79
80func TestEncodeDecodeOriginCert(t *testing.T) {
81 cert := OriginCert{

Callers

nothing calls this directly

Calls 2

FindOriginCertFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected