Documentation
¶
Index ¶
- type Beginner
- type BeginnerMock
- func ExpectBeginAndReturnError(beginError error) BeginnerMock
- func ExpectBeginAndReturnTx(txMock TxMock) BeginnerMock
- func ExpectBeginTxAndReturnError(beginError error, expectedOpts *sql.TxOptions) BeginnerMock
- func ExpectBeginTxAndReturnTx(tx TxMock, opts *sql.TxOptions) BeginnerMock
- func ExpectNothingBeginner() BeginnerMock
- func JoinBeginners(beginners ...BeginnerMock) BeginnerMock
- type Driver
- type DriverMock
- type Matcher
- type Tx
- type TxMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Beginner ¶
type Beginner struct {
// contains filtered or unexported fields
}
type BeginnerMock ¶
type BeginnerMock func(t testReporter) *Beginner
func ExpectBeginAndReturnError ¶
func ExpectBeginAndReturnError(beginError error) BeginnerMock
func ExpectBeginAndReturnTx ¶
func ExpectBeginAndReturnTx(txMock TxMock) BeginnerMock
func ExpectBeginTxAndReturnError ¶
func ExpectBeginTxAndReturnError(beginError error, expectedOpts *sql.TxOptions) BeginnerMock
func ExpectBeginTxAndReturnTx ¶
func ExpectBeginTxAndReturnTx(tx TxMock, opts *sql.TxOptions) BeginnerMock
func ExpectNothingBeginner ¶
func ExpectNothingBeginner() BeginnerMock
func JoinBeginners ¶
func JoinBeginners(beginners ...BeginnerMock) BeginnerMock
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func ExpectNothingDriver ¶
func ExpectNothingDriver(t testReporter) *Driver
type DriverMock ¶
type DriverMock func(t testReporter) *Driver
func ExpectDriverError ¶
func ExpectDriverError( errorMatches func(err, target error) bool, expectedErr, returnErr error, ) DriverMock
func JoinDrivers ¶
func JoinDrivers(drivers ...DriverMock) DriverMock
type Matcher ¶
func TxDisabled ¶
func TxDisabled() Matcher
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
func ExpectCommit ¶
func ExpectCommit(t testReporter) *Tx
func ExpectNothingTx ¶
func ExpectNothingTx(t testReporter) *Tx
type TxMock ¶
type TxMock func(t testReporter) *Tx
func ExpectRollback ¶
Click to show internal directories.
Click to hide internal directories.