Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupObjects ¶ added in v0.2.0
CleanupObjects cleans the given map of IDs to Objects in the database.
Types ¶
type DB ¶
DB fulfills db.DB with attributes that can be manually set.
func NewDB ¶
NewDB makes a new DB with the given setup func(s). Usage: import t "github.com/mf-proto/testing" db, err := t.NewDB(
t.SetupBolt("test.db"), t.SetupBuckets("Admins", "Users"),
)
type SetupFunc ¶
SetupFunc is a func which sets up a *DB.
func SetupBuckets ¶
SetupBuckets adds the given db.Buckets to the DB.
func SetupUpdateErr ¶
SetupUpdateErr adds an error to be returned when Update is called for the DB.
func SetupViewErr ¶
SetupViewErr adds an error to be returned when View is called for the DB.
Click to show internal directories.
Click to hide internal directories.