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

Function TestEncodeDecodeNilOriginCert

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

Source from the content-addressed store, hash-verified

96}
97
98func TestEncodeDecodeNilOriginCert(t *testing.T) {
99 var cert *OriginCert
100 blocks, err := cert.EncodeOriginCert()
101 assert.Equal(t, fmt.Errorf("originCert cannot be nil"), err)
102 require.Nil(t, blocks)
103}

Callers

nothing calls this directly

Calls 3

EncodeOriginCertMethod · 0.95
ErrorfMethod · 0.80
EqualMethod · 0.65

Tested by

no test coverage detected