Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TxMock ¶
TxMock is an autogenerated mock type for the TxInterface type
func NewTxMock ¶
NewTxMock creates a new instance of TxMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TxMock) EXPECT ¶
func (_m *TxMock) EXPECT() *TxMock_Expecter
type TxMock_Client_Call ¶
TxMock_Client_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Client'
func (*TxMock_Client_Call) Return ¶
func (_c *TxMock_Client_Call) Return(_a0 *ent.Client) *TxMock_Client_Call
func (*TxMock_Client_Call) Run ¶
func (_c *TxMock_Client_Call) Run(run func()) *TxMock_Client_Call
func (*TxMock_Client_Call) RunAndReturn ¶
func (_c *TxMock_Client_Call) RunAndReturn(run func() *ent.Client) *TxMock_Client_Call
type TxMock_Commit_Call ¶
TxMock_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*TxMock_Commit_Call) Return ¶
func (_c *TxMock_Commit_Call) Return(_a0 error) *TxMock_Commit_Call
func (*TxMock_Commit_Call) Run ¶
func (_c *TxMock_Commit_Call) Run(run func()) *TxMock_Commit_Call
func (*TxMock_Commit_Call) RunAndReturn ¶
func (_c *TxMock_Commit_Call) RunAndReturn(run func() error) *TxMock_Commit_Call
type TxMock_Expecter ¶
type TxMock_Expecter struct {
// contains filtered or unexported fields
}
func (*TxMock_Expecter) Client ¶
func (_e *TxMock_Expecter) Client() *TxMock_Client_Call
Client is a helper method to define mock.On call
func (*TxMock_Expecter) Commit ¶
func (_e *TxMock_Expecter) Commit() *TxMock_Commit_Call
Commit is a helper method to define mock.On call
func (*TxMock_Expecter) Rollback ¶
func (_e *TxMock_Expecter) Rollback() *TxMock_Rollback_Call
Rollback is a helper method to define mock.On call
type TxMock_Rollback_Call ¶
TxMock_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'
func (*TxMock_Rollback_Call) Return ¶
func (_c *TxMock_Rollback_Call) Return(_a0 error) *TxMock_Rollback_Call
func (*TxMock_Rollback_Call) Run ¶
func (_c *TxMock_Rollback_Call) Run(run func()) *TxMock_Rollback_Call
func (*TxMock_Rollback_Call) RunAndReturn ¶
func (_c *TxMock_Rollback_Call) RunAndReturn(run func() error) *TxMock_Rollback_Call