Run should be used to test any implementation of the storage.TrustDB
interface. An implementation interface should at least have one test method
that calls this test-suite.
type TestableDB interface {
storage.TrustDB// Prepare should reset the internal state so that the db is empty and is ready to be tested. Prepare(*testing.T, context.Context)
}
TestableDB extends the trust db interface with methods that are needed for testing.