(ta TestAccessor, t *testing.T, r certdb.OCSPRecord)
| 493 | } |
| 494 | |
| 495 | func 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 | } |
no test coverage detected
searching dependent graphs…