testutil

package
v0.0.0-...-e08bc68 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package testutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckExpr

func CheckExpr(t *testing.T, e qry.Marshaler, expected string, expectedValues []interface{})

Types

type BrokenSqlMarshaler

type BrokenSqlMarshaler int

func (BrokenSqlMarshaler) MarshalSql

func (b BrokenSqlMarshaler) MarshalSql(_ io.Writer, _ qry.Params) error

type BrokenWriter

type BrokenWriter int

func (BrokenWriter) Write

func (BrokenWriter) Write(_ []byte) (n int, err error)

type MockInsertable

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

MockInsertable is a mock of Insertable interface.

func NewMockInsertable

func NewMockInsertable(ctrl *gomock.Controller) *MockInsertable

NewMockInsertable creates a new mock instance.

func (*MockInsertable) EXPECT

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

func (*MockInsertable) InsertInto

func (m *MockInsertable) InsertInto() interface{}

InsertInto mocks base method.

type MockInsertableMockRecorder

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

MockInsertableMockRecorder is the mock recorder for MockInsertable.

func (*MockInsertableMockRecorder) InsertInto

func (mr *MockInsertableMockRecorder) InsertInto() *gomock.Call

InsertInto indicates an expected call of InsertInto.

type MockMarshaler

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

MockMarshaler is a mock of Marshaler interface.

func NewMockMarshaler

func NewMockMarshaler(ctrl *gomock.Controller) *MockMarshaler

NewMockMarshaler creates a new mock instance.

func (*MockMarshaler) EXPECT

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

func (*MockMarshaler) MarshalSql

func (m *MockMarshaler) MarshalSql(arg0 io.Writer, arg1 qry.Params) error

MarshalSql mocks base method.

type MockMarshalerMockRecorder

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

MockMarshalerMockRecorder is the mock recorder for MockMarshaler.

func (*MockMarshalerMockRecorder) MarshalSql

func (mr *MockMarshalerMockRecorder) MarshalSql(arg0, arg1 interface{}) *gomock.Call

MarshalSql indicates an expected call of MarshalSql.

type MockParams

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

MockParams is a mock of Params interface.

func NewMockParams

func NewMockParams(ctrl *gomock.Controller) *MockParams

NewMockParams creates a new mock instance.

func (*MockParams) Append

func (m *MockParams) Append(arg0 interface{}) string

Append mocks base method.

func (*MockParams) EXPECT

func (m *MockParams) EXPECT() *MockParamsMockRecorder

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

func (*MockParams) Names

func (m *MockParams) Names() []string

Names mocks base method.

func (*MockParams) Value

func (m *MockParams) Value(arg0 string) (interface{}, bool)

Value mocks base method.

func (*MockParams) Values

func (m *MockParams) Values() []interface{}

Values mocks base method.

type MockParamsMockRecorder

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

MockParamsMockRecorder is the mock recorder for MockParams.

func (*MockParamsMockRecorder) Append

func (mr *MockParamsMockRecorder) Append(arg0 interface{}) *gomock.Call

Append indicates an expected call of Append.

func (*MockParamsMockRecorder) Names

func (mr *MockParamsMockRecorder) Names() *gomock.Call

Names indicates an expected call of Names.

func (*MockParamsMockRecorder) Value

func (mr *MockParamsMockRecorder) Value(arg0 interface{}) *gomock.Call

Value indicates an expected call of Value.

func (*MockParamsMockRecorder) Values

func (mr *MockParamsMockRecorder) Values() *gomock.Call

Values indicates an expected call of Values.

type MockQueryContexter

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

MockQueryContexter is a mock of QueryContexter interface.

func NewMockQueryContexter

func NewMockQueryContexter(ctrl *gomock.Controller) *MockQueryContexter

NewMockQueryContexter creates a new mock instance.

func (*MockQueryContexter) EXPECT

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

func (*MockQueryContexter) QueryContext

func (m *MockQueryContexter) QueryContext(arg0 context.Context, arg1 string, arg2 ...interface{}) (*sql.Rows, error)

QueryContext mocks base method.

type MockQueryContexterMockRecorder

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

MockQueryContexterMockRecorder is the mock recorder for MockQueryContexter.

func (*MockQueryContexterMockRecorder) QueryContext

func (mr *MockQueryContexterMockRecorder) QueryContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

QueryContext indicates an expected call of QueryContext.

type MockQueryRowContexter

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

MockQueryRowContexter is a mock of QueryRowContexter interface.

func NewMockQueryRowContexter

func NewMockQueryRowContexter(ctrl *gomock.Controller) *MockQueryRowContexter

NewMockQueryRowContexter creates a new mock instance.

func (*MockQueryRowContexter) EXPECT

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

func (*MockQueryRowContexter) QueryRowContext

func (m *MockQueryRowContexter) QueryRowContext(arg0 context.Context, arg1 string, arg2 ...interface{}) *sql.Row

QueryRowContext mocks base method.

type MockQueryRowContexterMockRecorder

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

MockQueryRowContexterMockRecorder is the mock recorder for MockQueryRowContexter.

func (*MockQueryRowContexterMockRecorder) QueryRowContext

func (mr *MockQueryRowContexterMockRecorder) QueryRowContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

QueryRowContext indicates an expected call of QueryRowContext.

type MockQueryable

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

MockQueryable is a mock of Queryable interface.

func NewMockQueryable

func NewMockQueryable(ctrl *gomock.Controller) *MockQueryable

NewMockQueryable creates a new mock instance.

func (*MockQueryable) EXPECT

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

func (*MockQueryable) From

func (m *MockQueryable) From() interface{}

From mocks base method.

type MockQueryableMockRecorder

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

MockQueryableMockRecorder is the mock recorder for MockQueryable.

func (*MockQueryableMockRecorder) From

From indicates an expected call of From.

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

func (m *MockRow) Err() error

Err mocks base method.

func (*MockRow) Scan

func (m *MockRow) Scan(arg0 ...interface{}) error

Scan mocks base method.

type MockRowMockRecorder

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

MockRowMockRecorder is the mock recorder for MockRow.

func (*MockRowMockRecorder) Err

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

Err indicates an expected call of Err.

func (*MockRowMockRecorder) Scan

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

Scan indicates an expected call of Scan.

type MockRows

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

MockRows is a mock of Rows interface.

func NewMockRows

func NewMockRows(ctrl *gomock.Controller) *MockRows

NewMockRows creates a new mock instance.

func (*MockRows) EXPECT

func (m *MockRows) EXPECT() *MockRowsMockRecorder

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

func (*MockRows) Err

func (m *MockRows) Err() error

Err mocks base method.

func (*MockRows) Scan

func (m *MockRows) Scan(arg0 ...interface{}) error

Scan mocks base method.

type MockRowsMockRecorder

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

MockRowsMockRecorder is the mock recorder for MockRows.

func (*MockRowsMockRecorder) Err

func (mr *MockRowsMockRecorder) Err() *gomock.Call

Err indicates an expected call of Err.

func (*MockRowsMockRecorder) Scan

func (mr *MockRowsMockRecorder) Scan(arg0 ...interface{}) *gomock.Call

Scan indicates an expected call of Scan.

type MockScannable

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

MockScannable is a mock of Scannable interface.

func NewMockScannable

func NewMockScannable(ctrl *gomock.Controller) *MockScannable

NewMockScannable creates a new mock instance.

func (*MockScannable) EXPECT

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

func (*MockScannable) Scan

func (m *MockScannable) Scan(arg0 qry.Scanner) error

Scan mocks base method.

type MockScannableMockRecorder

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

MockScannableMockRecorder is the mock recorder for MockScannable.

func (*MockScannableMockRecorder) Scan

func (mr *MockScannableMockRecorder) Scan(arg0 interface{}) *gomock.Call

Scan indicates an expected call of Scan.

type MockSelectable

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

MockSelectable is a mock of Selectable interface.

func NewMockSelectable

func NewMockSelectable(ctrl *gomock.Controller) *MockSelectable

NewMockSelectable creates a new mock instance.

func (*MockSelectable) EXPECT

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

func (*MockSelectable) Select

func (m *MockSelectable) Select() []interface{}

Select mocks base method.

type MockSelectableMockRecorder

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

MockSelectableMockRecorder is the mock recorder for MockSelectable.

func (*MockSelectableMockRecorder) Select

func (mr *MockSelectableMockRecorder) Select() *gomock.Call

Select indicates an expected call of Select.

Jump to

Keyboard shortcuts

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