Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockDatabase
- func (m *MockDatabase) Close()
- func (m *MockDatabase) CopyFrom(arg0 context.Context, arg1 schema.Resources, arg2 bool, ...) error
- func (m *MockDatabase) Delete(arg0 context.Context, arg1 *schema.Table, arg2 []interface{}) error
- func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
- func (m *MockDatabase) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) error
- func (m *MockDatabase) Insert(arg0 context.Context, arg1 *schema.Table, arg2 schema.Resources) error
- func (m *MockDatabase) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgx.Rows, error)
- func (m *MockDatabase) RemoveStaleData(arg0 context.Context, arg1 *schema.Table, arg2 time.Time, arg3 []interface{}) error
- type MockDatabaseMockRecorder
- func (mr *MockDatabaseMockRecorder) Close() *gomock.Call
- func (mr *MockDatabaseMockRecorder) CopyFrom(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Insert(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) RemoveStaleData(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDatabase ¶
type MockDatabase struct {
// contains filtered or unexported fields
}
MockDatabase is a mock of Database interface.
func NewMockDatabase ¶
func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase
NewMockDatabase creates a new mock instance.
func (*MockDatabase) CopyFrom ¶
func (m *MockDatabase) CopyFrom(arg0 context.Context, arg1 schema.Resources, arg2 bool, arg3 map[string]interface{}) error
CopyFrom mocks base method.
func (*MockDatabase) EXPECT ¶
func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDatabase) Exec ¶
func (m *MockDatabase) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) error
Exec mocks base method.
func (*MockDatabase) Insert ¶
func (m *MockDatabase) Insert(arg0 context.Context, arg1 *schema.Table, arg2 schema.Resources) error
Insert mocks base method.
func (*MockDatabase) Query ¶
func (m *MockDatabase) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgx.Rows, error)
Query mocks base method.
func (*MockDatabase) RemoveStaleData ¶
func (m *MockDatabase) RemoveStaleData(arg0 context.Context, arg1 *schema.Table, arg2 time.Time, arg3 []interface{}) error
RemoveStaleData mocks base method.
type MockDatabaseMockRecorder ¶
type MockDatabaseMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaseMockRecorder is the mock recorder for MockDatabase.
func (*MockDatabaseMockRecorder) Close ¶
func (mr *MockDatabaseMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDatabaseMockRecorder) CopyFrom ¶
func (mr *MockDatabaseMockRecorder) CopyFrom(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CopyFrom indicates an expected call of CopyFrom.
func (*MockDatabaseMockRecorder) Delete ¶
func (mr *MockDatabaseMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockDatabaseMockRecorder) Exec ¶
func (mr *MockDatabaseMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockDatabaseMockRecorder) Insert ¶
func (mr *MockDatabaseMockRecorder) Insert(arg0, arg1, arg2 interface{}) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockDatabaseMockRecorder) Query ¶
func (mr *MockDatabaseMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockDatabaseMockRecorder) RemoveStaleData ¶
func (mr *MockDatabaseMockRecorder) RemoveStaleData(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
RemoveStaleData indicates an expected call of RemoveStaleData.