Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockDAOFace
- func (m *MockDAOFace) Begin() (*sqlx.Tx, error)
- func (m *MockDAOFace) Create(ctx context.Context, entity tabler.Tabler, opts ...interface{}) (int64, error)
- func (m *MockDAOFace) EXPECT() *MockDAOFaceMockRecorder
- func (m *MockDAOFace) Exec(ctx context.Context, query string, tx *sqlx.Tx, args ...interface{}) (sql.Result, error)
- func (m *MockDAOFace) GetCount(ctx context.Context, entity tabler.Tabler, condition params.Condition, ...) (uint64, error)
- func (m *MockDAOFace) List(ctx context.Context, dest interface{}, table tabler.Tabler, ...) error
- func (m *MockDAOFace) LockTable(ctx context.Context, tableName, mode string, tx *sqlx.Tx) error
- func (m *MockDAOFace) Ping(ctx context.Context) error
- func (m *MockDAOFace) Update(ctx context.Context, entity tabler.Tabler, condition params.Condition, ...) error
- func (m *MockDAOFace) Upsert(ctx context.Context, entities []tabler.Tabler, opts ...interface{}) error
- type MockDAOFaceMockRecorder
- func (mr *MockDAOFaceMockRecorder) Begin() *gomock.Call
- func (mr *MockDAOFaceMockRecorder) Create(ctx, entity interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockDAOFaceMockRecorder) Exec(ctx, query, tx interface{}, args ...interface{}) *gomock.Call
- func (mr *MockDAOFaceMockRecorder) GetCount(ctx, entity, condition interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockDAOFaceMockRecorder) List(ctx, dest, table, condition interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockDAOFaceMockRecorder) LockTable(ctx, tableName, mode, tx interface{}) *gomock.Call
- func (mr *MockDAOFaceMockRecorder) Ping(ctx interface{}) *gomock.Call
- func (mr *MockDAOFaceMockRecorder) Update(ctx, entity, condition, operation interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockDAOFaceMockRecorder) Upsert(ctx, entities interface{}, opts ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDAOFace ¶
type MockDAOFace struct {
// contains filtered or unexported fields
}
MockDAOFace is a mock of DAOFace interface.
func NewMockDAOFace ¶
func NewMockDAOFace(ctrl *gomock.Controller) *MockDAOFace
NewMockDAOFace creates a new mock instance.
func (*MockDAOFace) Begin ¶
func (m *MockDAOFace) Begin() (*sqlx.Tx, error)
Begin mocks base method.
func (*MockDAOFace) Create ¶
func (m *MockDAOFace) Create(ctx context.Context, entity tabler.Tabler, opts ...interface{}) (int64, error)
Create mocks base method.
func (*MockDAOFace) EXPECT ¶
func (m *MockDAOFace) EXPECT() *MockDAOFaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDAOFace) Exec ¶
func (m *MockDAOFace) Exec(ctx context.Context, query string, tx *sqlx.Tx, args ...interface{}) (sql.Result, error)
Exec mocks base method.
func (*MockDAOFace) GetCount ¶
func (m *MockDAOFace) GetCount(ctx context.Context, entity tabler.Tabler, condition params.Condition, opts ...interface{}) (uint64, error)
GetCount mocks base method.
func (*MockDAOFace) List ¶
func (m *MockDAOFace) List(ctx context.Context, dest interface{}, table tabler.Tabler, condition params.Condition, opts ...interface{}) error
List mocks base method.
func (*MockDAOFace) Ping ¶
func (m *MockDAOFace) Ping(ctx context.Context) error
Ping mocks base method.
type MockDAOFaceMockRecorder ¶
type MockDAOFaceMockRecorder struct {
// contains filtered or unexported fields
}
MockDAOFaceMockRecorder is the mock recorder for MockDAOFace.
func (*MockDAOFaceMockRecorder) Begin ¶
func (mr *MockDAOFaceMockRecorder) Begin() *gomock.Call
Begin indicates an expected call of Begin.
func (*MockDAOFaceMockRecorder) Create ¶
func (mr *MockDAOFaceMockRecorder) Create(ctx, entity interface{}, opts ...interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockDAOFaceMockRecorder) Exec ¶
func (mr *MockDAOFaceMockRecorder) Exec(ctx, query, tx interface{}, args ...interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockDAOFaceMockRecorder) GetCount ¶
func (mr *MockDAOFaceMockRecorder) GetCount(ctx, entity, condition interface{}, opts ...interface{}) *gomock.Call
GetCount indicates an expected call of GetCount.
func (*MockDAOFaceMockRecorder) List ¶
func (mr *MockDAOFaceMockRecorder) List(ctx, dest, table, condition interface{}, opts ...interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockDAOFaceMockRecorder) LockTable ¶
func (mr *MockDAOFaceMockRecorder) LockTable(ctx, tableName, mode, tx interface{}) *gomock.Call
LockTable indicates an expected call of LockTable.
func (*MockDAOFaceMockRecorder) Ping ¶
func (mr *MockDAOFaceMockRecorder) Ping(ctx interface{}) *gomock.Call
Ping indicates an expected call of Ping.
func (*MockDAOFaceMockRecorder) Update ¶
func (mr *MockDAOFaceMockRecorder) Update(ctx, entity, condition, operation interface{}, opts ...interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockDAOFaceMockRecorder) Upsert ¶
func (mr *MockDAOFaceMockRecorder) Upsert(ctx, entities interface{}, opts ...interface{}) *gomock.Call
Upsert indicates an expected call of Upsert.