mocks

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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) Close

func (m *MockDatabase) Close()

Close mocks base method.

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) Delete

func (m *MockDatabase) Delete(arg0 context.Context, arg1 *schema.Table, arg2 []interface{}) error

Delete mocks base method.

func (*MockDatabase) EXPECT

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL