Documentation ¶
Overview ¶
Package testutil is a generated GoMock package.
Index ¶
- func CheckExpr(t *testing.T, e qry.Marshaler, expected string, expectedValues []interface{})
- type BrokenSqlMarshaler
- type BrokenWriter
- type MockInsertable
- type MockInsertableMockRecorder
- type MockMarshaler
- type MockMarshalerMockRecorder
- type MockParams
- type MockParamsMockRecorder
- type MockQueryContexter
- type MockQueryContexterMockRecorder
- type MockQueryRowContexter
- type MockQueryRowContexterMockRecorder
- type MockQueryable
- type MockQueryableMockRecorder
- type MockRow
- type MockRowMockRecorder
- type MockRows
- type MockRowsMockRecorder
- type MockScannable
- type MockScannableMockRecorder
- type MockSelectable
- type MockSelectableMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BrokenWriter ¶
type BrokenWriter int
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 ¶
func (m *MockInsertable) EXPECT() *MockInsertableMockRecorder
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 ¶
func (m *MockMarshaler) EXPECT() *MockMarshalerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMarshaler) MarshalSql ¶
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) Value ¶
func (m *MockParams) Value(arg0 string) (interface{}, bool)
Value 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 ¶
func (m *MockQueryContexter) EXPECT() *MockQueryContexterMockRecorder
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 ¶
func (m *MockQueryRowContexter) EXPECT() *MockQueryRowContexterMockRecorder
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 ¶
func (m *MockQueryable) EXPECT() *MockQueryableMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockQueryableMockRecorder ¶
type MockQueryableMockRecorder struct {
// contains filtered or unexported fields
}
MockQueryableMockRecorder is the mock recorder for MockQueryable.
func (*MockQueryableMockRecorder) From ¶
func (mr *MockQueryableMockRecorder) From() *gomock.Call
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.
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.
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 ¶
func (m *MockScannable) EXPECT() *MockScannableMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (m *MockSelectable) EXPECT() *MockSelectableMockRecorder
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.