Documentation
¶
Index ¶
- func ErrOps[T persistence.StorageObject](err error) persistence.StorageOperations[T]
- func NewTestDB(t *testing.T, inits ...func(db *persistence.DB)) (db *persistence.DB)
- func NewTestDBOps[T persistence.StorageObject](t *testing.T, inits ...func(ops persistence.StorageOperations[T])) (ops persistence.StorageOperations[T])
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrOps ¶
func ErrOps[T persistence.StorageObject](err error) persistence.StorageOperations[T]
ErrReader creates an persistence.StorageOperations that returns the specified error in all calls.
func NewTestDB ¶
func NewTestDB(t *testing.T, inits ...func(db *persistence.DB)) (db *persistence.DB)
func NewTestDBOps ¶
func NewTestDBOps[T persistence.StorageObject](t *testing.T, inits ...func(ops persistence.StorageOperations[T])) (ops persistence.StorageOperations[T])
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.