Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Timeout = time.Second TestDataRelPath = "../trustdbtest/testdata" )
Functions ¶
func TestTrustDB ¶
func TestTrustDB(t *testing.T, db TestableTrustDB)
TestTrustDB should be used to test any implementation of the TrustDB interface. An implementation of the TrustDB interface should at least have on test method that calls this test-suite. The calling test code should have a top level Convey block.
setup should return a TrustDB in a clean state, i.e. no entries in the DB. cleanup can be used to release any resources that have been allocated during setup.
Types ¶
Click to show internal directories.
Click to hide internal directories.