Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupTables ¶
CleanupTables truncates tables. Should be called with all tables at once to reset the database while respecting referential integrity constraints.
Types ¶
type DafSubtest ¶
DafSubtest is the type of a function that implements a DAF subtest that is to be delimited by a transaction.
type TestPair ¶
type TestPair struct { Name string Func TransactionalSubtest }
TestPair pairs a TransactionalSubtest with a name for execution in a test suite.
type TransactionalSubtest ¶
TransactionalSubtest is the tyype of a function that implements a DAF subtest that is already delimited by one or more transactions.
func Parallel ¶
func Parallel(txnlSubtest TransactionalSubtest) TransactionalSubtest
Parallel returns a decorated TransactionalSubtest that calls t.Parallel() just before executing txnlSubtest.
func TestWithTransaction ¶
func TestWithTransaction( f DafSubtest, ) TransactionalSubtest
TestWithTransaction is a convenience wrapper to transform a DafSubtest into a TransactionalSubtest.