mock

package
v0.0.0-...-c3ef3ee Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 4 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 MockDB

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

MockDB is a mock of DB interface.

func NewMockDB

func NewMockDB(ctrl *gomock.Controller) *MockDB

NewMockDB creates a new mock instance.

func (*MockDB) CreateTable

func (m *MockDB) CreateTable(arg0 string, arg1 core.Cols) error

CreateTable mocks base method.

func (*MockDB) DropTable

func (m *MockDB) DropTable(arg0 string) error

DropTable mocks base method.

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

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

func (*MockDB) GetTable

func (m *MockDB) GetTable(arg0 string) (backend.Table, error)

GetTable mocks base method.

type MockDBMockRecorder

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

MockDBMockRecorder is the mock recorder for MockDB.

func (*MockDBMockRecorder) CreateTable

func (mr *MockDBMockRecorder) CreateTable(arg0, arg1 interface{}) *gomock.Call

CreateTable indicates an expected call of CreateTable.

func (*MockDBMockRecorder) DropTable

func (mr *MockDBMockRecorder) DropTable(arg0 interface{}) *gomock.Call

DropTable indicates an expected call of DropTable.

func (*MockDBMockRecorder) GetTable

func (mr *MockDBMockRecorder) GetTable(arg0 interface{}) *gomock.Call

GetTable indicates an expected call of GetTable.

type MockRow

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

MockRow is a mock of Row interface.

func NewMockRow

func NewMockRow(ctrl *gomock.Controller) *MockRow

NewMockRow creates a new mock instance.

func (*MockRow) EXPECT

func (m *MockRow) EXPECT() *MockRowMockRecorder

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

func (*MockRow) GetColNames

func (m *MockRow) GetColNames() core.ColumnNames

GetColNames mocks base method.

func (*MockRow) GetValueByColName

func (m *MockRow) GetValueByColName(arg0 core.ColumnName) (core.Value, error)

GetValueByColName mocks base method.

func (*MockRow) GetValues

func (m *MockRow) GetValues() core.Values

GetValues mocks base method.

func (*MockRow) UpdateValue

func (m *MockRow) UpdateValue(arg0 core.ColumnName, arg1 core.Value)

UpdateValue mocks base method.

type MockRowMockRecorder

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

MockRowMockRecorder is the mock recorder for MockRow.

func (*MockRowMockRecorder) GetColNames

func (mr *MockRowMockRecorder) GetColNames() *gomock.Call

GetColNames indicates an expected call of GetColNames.

func (*MockRowMockRecorder) GetValueByColName

func (mr *MockRowMockRecorder) GetValueByColName(arg0 interface{}) *gomock.Call

GetValueByColName indicates an expected call of GetValueByColName.

func (*MockRowMockRecorder) GetValues

func (mr *MockRowMockRecorder) GetValues() *gomock.Call

GetValues indicates an expected call of GetValues.

func (*MockRowMockRecorder) UpdateValue

func (mr *MockRowMockRecorder) UpdateValue(arg0, arg1 interface{}) *gomock.Call

UpdateValue indicates an expected call of UpdateValue.

type MockTable

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

MockTable is a mock of Table interface.

func NewMockTable

func NewMockTable(ctrl *gomock.Controller) *MockTable

NewMockTable creates a new mock instance.

func (*MockTable) Copy

func (m *MockTable) Copy() backend.Table

Copy mocks base method.

func (*MockTable) CrossJoin

func (m *MockTable) CrossJoin(arg0 backend.Table) (backend.Table, error)

CrossJoin mocks base method.

func (*MockTable) Delete

func (m *MockTable) Delete(arg0 func(backend.Row) (core.Value, error)) (backend.Table, error)

Delete mocks base method.

func (*MockTable) EXPECT

func (m *MockTable) EXPECT() *MockTableMockRecorder

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

func (*MockTable) GetColNames

func (m *MockTable) GetColNames() core.ColumnNames

GetColNames mocks base method.

func (*MockTable) GetCols

func (m *MockTable) GetCols() core.Cols

GetCols mocks base method.

func (*MockTable) GetName

func (m *MockTable) GetName() string

GetName mocks base method.

func (*MockTable) GetRows

func (m *MockTable) GetRows() []backend.Row

GetRows mocks base method.

func (*MockTable) InsertValues

func (m *MockTable) InsertValues(arg0 core.ColumnNames, arg1 core.ValuesList) error

InsertValues mocks base method.

func (*MockTable) Limit

func (m *MockTable) Limit(arg0 int) (backend.Table, error)

Limit mocks base method.

func (*MockTable) OrderBy

func (m *MockTable) OrderBy(arg0 core.ColumnNames, arg1 []int) (backend.Table, error)

OrderBy mocks base method.

func (*MockTable) Project

func (m *MockTable) Project(arg0 core.ColumnNames, arg1 []func(backend.Row) (core.Value, error)) (backend.Table, error)

Project mocks base method.

func (*MockTable) RenameTableName

func (m *MockTable) RenameTableName(arg0 string)

RenameTableName mocks base method.

func (*MockTable) Update

func (m *MockTable) Update(arg0 core.ColumnNames, arg1 func(backend.Row) (core.Value, error), arg2 []func(backend.Row) (core.Value, error)) (backend.Table, error)

Update mocks base method.

func (*MockTable) Where

func (m *MockTable) Where(arg0 func(backend.Row) (core.Value, error)) (backend.Table, error)

Where mocks base method.

type MockTableMockRecorder

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

MockTableMockRecorder is the mock recorder for MockTable.

func (*MockTableMockRecorder) Copy

func (mr *MockTableMockRecorder) Copy() *gomock.Call

Copy indicates an expected call of Copy.

func (*MockTableMockRecorder) CrossJoin

func (mr *MockTableMockRecorder) CrossJoin(arg0 interface{}) *gomock.Call

CrossJoin indicates an expected call of CrossJoin.

func (*MockTableMockRecorder) Delete

func (mr *MockTableMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockTableMockRecorder) GetColNames

func (mr *MockTableMockRecorder) GetColNames() *gomock.Call

GetColNames indicates an expected call of GetColNames.

func (*MockTableMockRecorder) GetCols

func (mr *MockTableMockRecorder) GetCols() *gomock.Call

GetCols indicates an expected call of GetCols.

func (*MockTableMockRecorder) GetName

func (mr *MockTableMockRecorder) GetName() *gomock.Call

GetName indicates an expected call of GetName.

func (*MockTableMockRecorder) GetRows

func (mr *MockTableMockRecorder) GetRows() *gomock.Call

GetRows indicates an expected call of GetRows.

func (*MockTableMockRecorder) InsertValues

func (mr *MockTableMockRecorder) InsertValues(arg0, arg1 interface{}) *gomock.Call

InsertValues indicates an expected call of InsertValues.

func (*MockTableMockRecorder) Limit

func (mr *MockTableMockRecorder) Limit(arg0 interface{}) *gomock.Call

Limit indicates an expected call of Limit.

func (*MockTableMockRecorder) OrderBy

func (mr *MockTableMockRecorder) OrderBy(arg0, arg1 interface{}) *gomock.Call

OrderBy indicates an expected call of OrderBy.

func (*MockTableMockRecorder) Project

func (mr *MockTableMockRecorder) Project(arg0, arg1 interface{}) *gomock.Call

Project indicates an expected call of Project.

func (*MockTableMockRecorder) RenameTableName

func (mr *MockTableMockRecorder) RenameTableName(arg0 interface{}) *gomock.Call

RenameTableName indicates an expected call of RenameTableName.

func (*MockTableMockRecorder) Update

func (mr *MockTableMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockTableMockRecorder) Where

func (mr *MockTableMockRecorder) Where(arg0 interface{}) *gomock.Call

Where indicates an expected call of Where.

Jump to

Keyboard shortcuts

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