mock

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStorage

type MockStorage struct {
	// contains filtered or unexported fields
}

MockStorage is a mock of Storage interface.

func NewMockStorage

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

NewMockStorage creates a new mock instance.

func (*MockStorage) Begin added in v0.10.0

Begin mocks base method.

func (*MockStorage) Close

func (m *MockStorage) Close()

Close mocks base method.

func (*MockStorage) CopyFrom

func (m *MockStorage) CopyFrom(arg0 context.Context, arg1 schema.Resources, arg2 bool, arg3 map[string]interface{}) error

CopyFrom mocks base method.

func (*MockStorage) Delete

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

Delete mocks base method.

func (*MockStorage) Dialect

func (m *MockStorage) Dialect() schema.Dialect

Dialect mocks base method.

func (*MockStorage) EXPECT

func (m *MockStorage) EXPECT() *MockStorageMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStorage) Exec

func (m *MockStorage) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) error

Exec mocks base method.

func (*MockStorage) Insert

func (m *MockStorage) Insert(arg0 context.Context, arg1 *schema.Table, arg2 schema.Resources, arg3 bool, arg4 map[string]interface{}) error

Insert mocks base method.

func (*MockStorage) Query

func (m *MockStorage) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgx.Rows, error)

Query mocks base method.

func (*MockStorage) RawCopyFrom added in v0.7.4

func (m *MockStorage) RawCopyFrom(arg0 context.Context, arg1 io.Reader, arg2 string) error

RawCopyFrom mocks base method.

func (*MockStorage) RawCopyTo added in v0.7.4

func (m *MockStorage) RawCopyTo(arg0 context.Context, arg1 io.Writer, arg2 string) error

RawCopyTo mocks base method.

func (*MockStorage) RemoveStaleData

func (m *MockStorage) RemoveStaleData(arg0 context.Context, arg1 *schema.Table, arg2 time.Time, arg3 []interface{}) error

RemoveStaleData mocks base method.

type MockStorageMockRecorder

type MockStorageMockRecorder struct {
	// contains filtered or unexported fields
}

MockStorageMockRecorder is the mock recorder for MockStorage.

func (*MockStorageMockRecorder) Begin added in v0.10.0

func (mr *MockStorageMockRecorder) Begin(arg0 interface{}) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockStorageMockRecorder) Close

func (mr *MockStorageMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockStorageMockRecorder) CopyFrom

func (mr *MockStorageMockRecorder) CopyFrom(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CopyFrom indicates an expected call of CopyFrom.

func (*MockStorageMockRecorder) Delete

func (mr *MockStorageMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockStorageMockRecorder) Dialect

func (mr *MockStorageMockRecorder) Dialect() *gomock.Call

Dialect indicates an expected call of Dialect.

func (*MockStorageMockRecorder) Exec

func (mr *MockStorageMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockStorageMockRecorder) Insert

func (mr *MockStorageMockRecorder) Insert(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockStorageMockRecorder) Query

func (mr *MockStorageMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockStorageMockRecorder) RawCopyFrom added in v0.7.4

func (mr *MockStorageMockRecorder) RawCopyFrom(arg0, arg1, arg2 interface{}) *gomock.Call

RawCopyFrom indicates an expected call of RawCopyFrom.

func (*MockStorageMockRecorder) RawCopyTo added in v0.7.4

func (mr *MockStorageMockRecorder) RawCopyTo(arg0, arg1, arg2 interface{}) *gomock.Call

RawCopyTo indicates an expected call of RawCopyTo.

func (*MockStorageMockRecorder) RemoveStaleData

func (mr *MockStorageMockRecorder) 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