Documentation
¶
Overview ¶
Package dbrtest provides objects and helpers for writings tests for code that uses dbr and dbrutils packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTxRunner ¶
MockTxRunner is a mock that implements dbrutils.TxRunner interface.
func (*MockTxRunner) DoInTx ¶
func (m *MockTxRunner) DoInTx(ctx context.Context, fn func(dbRunner dbr.SessionRunner) error) error
DoInTx returns error or calls passed callback.
Click to show internal directories.
Click to hide internal directories.