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

Function prepDB

api/certadd/insert_test.go:28–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26)
27
28func prepDB() (certdb.Accessor, error) {
29 db := testdb.SQLiteDB("../../certdb/testdb/certstore_development.db")
30 dbAccessor := sql.NewAccessor(db)
31
32 return dbAccessor, nil
33}
34
35func makeRequest(t *testing.T, dbAccessor certdb.Accessor, signer ocsp.Signer, req map[string]interface{}) (resp *http.Response, body []byte) {
36 ts := httptest.NewServer(NewHandler(dbAccessor, signer))

Callers 15

TestInsertMissingSerialFunction · 0.70
TestInsertMissingAKIFunction · 0.70
TestInsertMissingExpiryFunction · 0.70
TestInsertMissingPEMFunction · 0.70
TestInsertInvalidSerialFunction · 0.70
TestInsertInvalidAKIFunction · 0.70
TestInsertInvalidStatusFunction · 0.70
TestInsertInvalidPEMFunction · 0.70
TestInsertInvalidExpiryFunction · 0.70
TestInsertWrongSerialFunction · 0.70
TestInsertWrongAKIFunction · 0.70

Calls 2

SQLiteDBFunction · 0.92
NewAccessorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…