MCPcopy Create free account
hub / github.com/cloudflare/cfssl / setupGoodCert

Function setupGoodCert

certdb/sql/sql_test.go:495–509  ·  view source on GitHub ↗
(ta TestAccessor, t *testing.T, r certdb.OCSPRecord)

Source from the content-addressed store, hash-verified

493}
494
495func setupGoodCert(ta TestAccessor, t *testing.T, r certdb.OCSPRecord) {
496 certWant := certdb.CertificateRecord{
497 AKI: r.AKI,
498 CALabel: "default",
499 Expiry: time.Now().Add(time.Minute),
500 PEM: "fake cert data",
501 Serial: r.Serial,
502 Status: "good",
503 Reason: 0,
504 }
505
506 if err := ta.Accessor.InsertCertificate(certWant); err != nil {
507 t.Fatal(err)
508 }
509}

Callers 4

testInsertOCSPAndGetOCSPFunction · 0.85
testUpdateOCSPAndGetOCSPFunction · 0.85
testUpsertOCSPAndGetOCSPFunction · 0.85

Calls 2

AddMethod · 0.65
InsertCertificateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…