mocks

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfigProperties added in v1.3.1

type AppConfigProperties struct {
	mock.Mock
}

AppConfigProperties is an autogenerated mock type for the AppConfigProperties type

func NewAppConfigProperties added in v1.3.1

func NewAppConfigProperties(t mockConstructorTestingTNewAppConfigProperties) *AppConfigProperties

NewAppConfigProperties creates a new instance of AppConfigProperties. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AppConfigProperties) EXPECT added in v1.3.1

func (*AppConfigProperties) Get added in v1.3.1

func (_m *AppConfigProperties) Get(key string) string

Get provides a mock function with given fields: key

type AppConfigProperties_Expecter added in v1.3.1

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

func (*AppConfigProperties_Expecter) Get added in v1.3.1

Get is a helper method to define mock.On call

  • key string

type AppConfigProperties_Get_Call added in v1.3.1

type AppConfigProperties_Get_Call struct {
	*mock.Call
}

AppConfigProperties_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*AppConfigProperties_Get_Call) Return added in v1.3.1

func (*AppConfigProperties_Get_Call) Run added in v1.3.1

func (*AppConfigProperties_Get_Call) RunAndReturn added in v1.3.1

type BeanPropertyRowMapper added in v1.3.1

type BeanPropertyRowMapper struct {
	mock.Mock
}

BeanPropertyRowMapper is an autogenerated mock type for the BeanPropertyRowMapper type

func NewBeanPropertyRowMapper added in v1.3.1

func NewBeanPropertyRowMapper(t mockConstructorTestingTNewBeanPropertyRowMapper) *BeanPropertyRowMapper

NewBeanPropertyRowMapper creates a new instance of BeanPropertyRowMapper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BeanPropertyRowMapper) EXPECT added in v1.3.1

func (*BeanPropertyRowMapper) RowMapper added in v1.3.1

func (_m *BeanPropertyRowMapper) RowMapper(row *sql.Row) interface{}

RowMapper provides a mock function with given fields: row

func (*BeanPropertyRowMapper) RowsMapper added in v1.3.1

func (_m *BeanPropertyRowMapper) RowsMapper(rows *sql.Rows) interface{}

RowsMapper provides a mock function with given fields: rows

type BeanPropertyRowMapper_Expecter added in v1.3.1

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

func (*BeanPropertyRowMapper_Expecter) RowMapper added in v1.3.1

RowMapper is a helper method to define mock.On call

  • row *sql.Row

func (*BeanPropertyRowMapper_Expecter) RowsMapper added in v1.3.1

RowsMapper is a helper method to define mock.On call

  • rows *sql.Rows

type BeanPropertyRowMapper_RowMapper_Call added in v1.3.1

type BeanPropertyRowMapper_RowMapper_Call struct {
	*mock.Call
}

BeanPropertyRowMapper_RowMapper_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RowMapper'

func (*BeanPropertyRowMapper_RowMapper_Call) Return added in v1.3.1

func (*BeanPropertyRowMapper_RowMapper_Call) Run added in v1.3.1

func (*BeanPropertyRowMapper_RowMapper_Call) RunAndReturn added in v1.3.1

func (_c *BeanPropertyRowMapper_RowMapper_Call) RunAndReturn(run func(*sql.Row) interface{}) *BeanPropertyRowMapper_RowMapper_Call

type BeanPropertyRowMapper_RowsMapper_Call added in v1.3.1

type BeanPropertyRowMapper_RowsMapper_Call struct {
	*mock.Call
}

BeanPropertyRowMapper_RowsMapper_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RowsMapper'

func (*BeanPropertyRowMapper_RowsMapper_Call) Return added in v1.3.1

func (*BeanPropertyRowMapper_RowsMapper_Call) Run added in v1.3.1

func (*BeanPropertyRowMapper_RowsMapper_Call) RunAndReturn added in v1.3.1

func (_c *BeanPropertyRowMapper_RowsMapper_Call) RunAndReturn(run func(*sql.Rows) interface{}) *BeanPropertyRowMapper_RowsMapper_Call

type DataSource added in v1.3.1

type DataSource struct {
	mock.Mock
}

DataSource is an autogenerated mock type for the DataSource type

func NewDataSource added in v1.3.1

func NewDataSource(t mockConstructorTestingTNewDataSource) *DataSource

NewDataSource creates a new instance of DataSource. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DataSource) EXPECT added in v1.3.1

func (_m *DataSource) EXPECT() *DataSource_Expecter

func (*DataSource) FormatDsn added in v1.3.1

func (_m *DataSource) FormatDsn() (string, string)

FormatDsn provides a mock function with given fields:

func (*DataSource) GetDriverName added in v1.3.1

func (_m *DataSource) GetDriverName() string

GetDriverName provides a mock function with given fields:

type DataSource_Expecter added in v1.3.1

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

func (*DataSource_Expecter) FormatDsn added in v1.3.1

FormatDsn is a helper method to define mock.On call

func (*DataSource_Expecter) GetDriverName added in v1.3.1

GetDriverName is a helper method to define mock.On call

type DataSource_FormatDsn_Call added in v1.3.1

type DataSource_FormatDsn_Call struct {
	*mock.Call
}

DataSource_FormatDsn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FormatDsn'

func (*DataSource_FormatDsn_Call) Return added in v1.3.1

func (*DataSource_FormatDsn_Call) Run added in v1.3.1

func (*DataSource_FormatDsn_Call) RunAndReturn added in v1.3.1

func (_c *DataSource_FormatDsn_Call) RunAndReturn(run func() (string, string)) *DataSource_FormatDsn_Call

type DataSource_GetDriverName_Call added in v1.3.1

type DataSource_GetDriverName_Call struct {
	*mock.Call
}

DataSource_GetDriverName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDriverName'

func (*DataSource_GetDriverName_Call) Return added in v1.3.1

func (*DataSource_GetDriverName_Call) Run added in v1.3.1

func (*DataSource_GetDriverName_Call) RunAndReturn added in v1.3.1

type DbManager added in v1.3.1

type DbManager struct {
	mock.Mock
}

DbManager is an autogenerated mock type for the DbManager type

func NewDbManager added in v1.3.1

func NewDbManager(t mockConstructorTestingTNewDbManager) *DbManager

NewDbManager creates a new instance of DbManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DbManager) Close added in v1.3.1

func (_m *DbManager) Close() error

Close provides a mock function with given fields:

func (*DbManager) EXPECT added in v1.3.1

func (_m *DbManager) EXPECT() *DbManager_Expecter

func (*DbManager) GetDb added in v1.3.1

func (_m *DbManager) GetDb() (*sql.DB, error)

GetDb provides a mock function with given fields:

type DbManager_Close_Call added in v1.3.1

type DbManager_Close_Call struct {
	*mock.Call
}

DbManager_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*DbManager_Close_Call) Return added in v1.3.1

func (*DbManager_Close_Call) Run added in v1.3.1

func (_c *DbManager_Close_Call) Run(run func()) *DbManager_Close_Call

func (*DbManager_Close_Call) RunAndReturn added in v1.3.1

func (_c *DbManager_Close_Call) RunAndReturn(run func() error) *DbManager_Close_Call

type DbManager_Expecter added in v1.3.1

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

func (*DbManager_Expecter) Close added in v1.3.1

Close is a helper method to define mock.On call

func (*DbManager_Expecter) GetDb added in v1.3.1

GetDb is a helper method to define mock.On call

type DbManager_GetDb_Call added in v1.3.1

type DbManager_GetDb_Call struct {
	*mock.Call
}

DbManager_GetDb_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDb'

func (*DbManager_GetDb_Call) Return added in v1.3.1

func (_c *DbManager_GetDb_Call) Return(_a0 *sql.DB, _a1 error) *DbManager_GetDb_Call

func (*DbManager_GetDb_Call) Run added in v1.3.1

func (_c *DbManager_GetDb_Call) Run(run func()) *DbManager_GetDb_Call

func (*DbManager_GetDb_Call) RunAndReturn added in v1.3.1

func (_c *DbManager_GetDb_Call) RunAndReturn(run func() (*sql.DB, error)) *DbManager_GetDb_Call

type GdbcTemplate added in v1.3.1

type GdbcTemplate struct {
	mock.Mock
}

GdbcTemplate is an autogenerated mock type for the GdbcTemplate type

func NewGdbcTemplate added in v1.3.1

func NewGdbcTemplate(t mockConstructorTestingTNewGdbcTemplate) *GdbcTemplate

NewGdbcTemplate creates a new instance of GdbcTemplate. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GdbcTemplate) BeginTx added in v1.3.1

func (_m *GdbcTemplate) BeginTx() (transaction.Transaction, error)

BeginTx provides a mock function with given fields:

func (*GdbcTemplate) CloseDB added in v1.3.1

func (_m *GdbcTemplate) CloseDB() error

CloseDB provides a mock function with given fields:

func (*GdbcTemplate) EXPECT added in v1.3.1

func (_m *GdbcTemplate) EXPECT() *GdbcTemplate_Expecter

func (*GdbcTemplate) Execute added in v1.3.1

func (_m *GdbcTemplate) Execute(sqlstr string, args ...interface{}) (sql.Result, error)

Execute provides a mock function with given fields: sqlstr, args

func (*GdbcTemplate) Insert added in v1.3.1

func (_m *GdbcTemplate) Insert(sqlstr string, args ...interface{}) (sql.Result, error)

Insert provides a mock function with given fields: sqlstr, args

func (*GdbcTemplate) QueryForArray added in v1.3.1

func (_m *GdbcTemplate) QueryForArray(sqlstr string, args ...interface{}) mapper.RowsConvertor

QueryForArray provides a mock function with given fields: sqlstr, args

func (*GdbcTemplate) QueryRow added in v1.3.1

func (_m *GdbcTemplate) QueryRow(sqlstr string, args ...interface{}) mapper.RowConvertor

QueryRow provides a mock function with given fields: sqlstr, args

func (*GdbcTemplate) Update added in v1.3.1

func (_m *GdbcTemplate) Update(sqlstr string, args ...interface{}) (sql.Result, error)

Update provides a mock function with given fields: sqlstr, args

type GdbcTemplate_BeginTx_Call added in v1.3.1

type GdbcTemplate_BeginTx_Call struct {
	*mock.Call
}

GdbcTemplate_BeginTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeginTx'

func (*GdbcTemplate_BeginTx_Call) Return added in v1.3.1

func (*GdbcTemplate_BeginTx_Call) Run added in v1.3.1

func (*GdbcTemplate_BeginTx_Call) RunAndReturn added in v1.3.1

type GdbcTemplate_CloseDB_Call added in v1.3.1

type GdbcTemplate_CloseDB_Call struct {
	*mock.Call
}

GdbcTemplate_CloseDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloseDB'

func (*GdbcTemplate_CloseDB_Call) Return added in v1.3.1

func (*GdbcTemplate_CloseDB_Call) Run added in v1.3.1

func (*GdbcTemplate_CloseDB_Call) RunAndReturn added in v1.3.1

func (_c *GdbcTemplate_CloseDB_Call) RunAndReturn(run func() error) *GdbcTemplate_CloseDB_Call

type GdbcTemplate_Execute_Call added in v1.3.1

type GdbcTemplate_Execute_Call struct {
	*mock.Call
}

GdbcTemplate_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*GdbcTemplate_Execute_Call) Return added in v1.3.1

func (*GdbcTemplate_Execute_Call) Run added in v1.3.1

func (_c *GdbcTemplate_Execute_Call) Run(run func(sqlstr string, args ...interface{})) *GdbcTemplate_Execute_Call

func (*GdbcTemplate_Execute_Call) RunAndReturn added in v1.3.1

func (_c *GdbcTemplate_Execute_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *GdbcTemplate_Execute_Call

type GdbcTemplate_Expecter added in v1.3.1

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

func (*GdbcTemplate_Expecter) BeginTx added in v1.3.1

BeginTx is a helper method to define mock.On call

func (*GdbcTemplate_Expecter) CloseDB added in v1.3.1

CloseDB is a helper method to define mock.On call

func (*GdbcTemplate_Expecter) Execute added in v1.3.1

func (_e *GdbcTemplate_Expecter) Execute(sqlstr interface{}, args ...interface{}) *GdbcTemplate_Execute_Call

Execute is a helper method to define mock.On call

  • sqlstr string
  • args ...interface{}

func (*GdbcTemplate_Expecter) Insert added in v1.3.1

func (_e *GdbcTemplate_Expecter) Insert(sqlstr interface{}, args ...interface{}) *GdbcTemplate_Insert_Call

Insert is a helper method to define mock.On call

  • sqlstr string
  • args ...interface{}

func (*GdbcTemplate_Expecter) QueryForArray added in v1.3.1

func (_e *GdbcTemplate_Expecter) QueryForArray(sqlstr interface{}, args ...interface{}) *GdbcTemplate_QueryForArray_Call

QueryForArray is a helper method to define mock.On call

  • sqlstr string
  • args ...interface{}

func (*GdbcTemplate_Expecter) QueryRow added in v1.3.1

func (_e *GdbcTemplate_Expecter) QueryRow(sqlstr interface{}, args ...interface{}) *GdbcTemplate_QueryRow_Call

QueryRow is a helper method to define mock.On call

  • sqlstr string
  • args ...interface{}

func (*GdbcTemplate_Expecter) Update added in v1.3.1

func (_e *GdbcTemplate_Expecter) Update(sqlstr interface{}, args ...interface{}) *GdbcTemplate_Update_Call

Update is a helper method to define mock.On call

  • sqlstr string
  • args ...interface{}

type GdbcTemplate_Insert_Call added in v1.3.1

type GdbcTemplate_Insert_Call struct {
	*mock.Call
}

GdbcTemplate_Insert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Insert'

func (*GdbcTemplate_Insert_Call) Return added in v1.3.1

func (*GdbcTemplate_Insert_Call) Run added in v1.3.1

func (_c *GdbcTemplate_Insert_Call) Run(run func(sqlstr string, args ...interface{})) *GdbcTemplate_Insert_Call

func (*GdbcTemplate_Insert_Call) RunAndReturn added in v1.3.1

func (_c *GdbcTemplate_Insert_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *GdbcTemplate_Insert_Call

type GdbcTemplate_QueryForArray_Call added in v1.3.1

type GdbcTemplate_QueryForArray_Call struct {
	*mock.Call
}

GdbcTemplate_QueryForArray_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryForArray'

func (*GdbcTemplate_QueryForArray_Call) Return added in v1.3.1

func (*GdbcTemplate_QueryForArray_Call) Run added in v1.3.1

func (_c *GdbcTemplate_QueryForArray_Call) Run(run func(sqlstr string, args ...interface{})) *GdbcTemplate_QueryForArray_Call

func (*GdbcTemplate_QueryForArray_Call) RunAndReturn added in v1.3.1

func (_c *GdbcTemplate_QueryForArray_Call) RunAndReturn(run func(string, ...interface{}) mapper.RowsConvertor) *GdbcTemplate_QueryForArray_Call

type GdbcTemplate_QueryRow_Call added in v1.3.1

type GdbcTemplate_QueryRow_Call struct {
	*mock.Call
}

GdbcTemplate_QueryRow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryRow'

func (*GdbcTemplate_QueryRow_Call) Return added in v1.3.1

func (*GdbcTemplate_QueryRow_Call) Run added in v1.3.1

func (_c *GdbcTemplate_QueryRow_Call) Run(run func(sqlstr string, args ...interface{})) *GdbcTemplate_QueryRow_Call

func (*GdbcTemplate_QueryRow_Call) RunAndReturn added in v1.3.1

func (_c *GdbcTemplate_QueryRow_Call) RunAndReturn(run func(string, ...interface{}) mapper.RowConvertor) *GdbcTemplate_QueryRow_Call

type GdbcTemplate_Update_Call added in v1.3.1

type GdbcTemplate_Update_Call struct {
	*mock.Call
}

GdbcTemplate_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*GdbcTemplate_Update_Call) Return added in v1.3.1

func (*GdbcTemplate_Update_Call) Run added in v1.3.1

func (_c *GdbcTemplate_Update_Call) Run(run func(sqlstr string, args ...interface{})) *GdbcTemplate_Update_Call

func (*GdbcTemplate_Update_Call) RunAndReturn added in v1.3.1

func (_c *GdbcTemplate_Update_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *GdbcTemplate_Update_Call

type OpenDb added in v1.3.1

type OpenDb struct {
	mock.Mock
}

OpenDb is an autogenerated mock type for the OpenDb type

func NewOpenDb added in v1.3.1

func NewOpenDb(t mockConstructorTestingTNewOpenDb) *OpenDb

NewOpenDb creates a new instance of OpenDb. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*OpenDb) EXPECT added in v1.3.1

func (_m *OpenDb) EXPECT() *OpenDb_Expecter

func (*OpenDb) Execute added in v1.3.1

func (_m *OpenDb) Execute(driverName string, dataSourceName string) (*sql.DB, error)

Execute provides a mock function with given fields: driverName, dataSourceName

type OpenDb_Execute_Call added in v1.3.1

type OpenDb_Execute_Call struct {
	*mock.Call
}

OpenDb_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*OpenDb_Execute_Call) Return added in v1.3.1

func (_c *OpenDb_Execute_Call) Return(_a0 *sql.DB, _a1 error) *OpenDb_Execute_Call

func (*OpenDb_Execute_Call) Run added in v1.3.1

func (_c *OpenDb_Execute_Call) Run(run func(driverName string, dataSourceName string)) *OpenDb_Execute_Call

func (*OpenDb_Execute_Call) RunAndReturn added in v1.3.1

func (_c *OpenDb_Execute_Call) RunAndReturn(run func(string, string) (*sql.DB, error)) *OpenDb_Execute_Call

type OpenDb_Expecter added in v1.3.1

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

func (*OpenDb_Expecter) Execute added in v1.3.1

func (_e *OpenDb_Expecter) Execute(driverName interface{}, dataSourceName interface{}) *OpenDb_Execute_Call

Execute is a helper method to define mock.On call

  • driverName string
  • dataSourceName string

type Result added in v1.3.1

type Result struct {
	mock.Mock
}

Result is an autogenerated mock type for the Result type

func NewResult added in v1.3.1

func NewResult(t mockConstructorTestingTNewResult) *Result

NewResult creates a new instance of Result. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Result) EXPECT added in v1.3.1

func (_m *Result) EXPECT() *Result_Expecter

func (*Result) LastInsertId added in v1.3.1

func (_m *Result) LastInsertId() (int64, error)

LastInsertId provides a mock function with given fields:

func (*Result) RowsAffected added in v1.3.1

func (_m *Result) RowsAffected() (int64, error)

RowsAffected provides a mock function with given fields:

type Result_Expecter added in v1.3.1

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

func (*Result_Expecter) LastInsertId added in v1.3.1

func (_e *Result_Expecter) LastInsertId() *Result_LastInsertId_Call

LastInsertId is a helper method to define mock.On call

func (*Result_Expecter) RowsAffected added in v1.3.1

func (_e *Result_Expecter) RowsAffected() *Result_RowsAffected_Call

RowsAffected is a helper method to define mock.On call

type Result_LastInsertId_Call added in v1.3.1

type Result_LastInsertId_Call struct {
	*mock.Call
}

Result_LastInsertId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LastInsertId'

func (*Result_LastInsertId_Call) Return added in v1.3.1

func (*Result_LastInsertId_Call) Run added in v1.3.1

func (*Result_LastInsertId_Call) RunAndReturn added in v1.3.1

func (_c *Result_LastInsertId_Call) RunAndReturn(run func() (int64, error)) *Result_LastInsertId_Call

type Result_RowsAffected_Call added in v1.3.1

type Result_RowsAffected_Call struct {
	*mock.Call
}

Result_RowsAffected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RowsAffected'

func (*Result_RowsAffected_Call) Return added in v1.3.1

func (*Result_RowsAffected_Call) Run added in v1.3.1

func (*Result_RowsAffected_Call) RunAndReturn added in v1.3.1

func (_c *Result_RowsAffected_Call) RunAndReturn(run func() (int64, error)) *Result_RowsAffected_Call

type RowMapper added in v1.3.1

type RowMapper struct {
	mock.Mock
}

RowMapper is an autogenerated mock type for the RowMapper type

func NewRowMapper added in v1.3.1

func NewRowMapper(t mockConstructorTestingTNewRowMapper) *RowMapper

NewRowMapper creates a new instance of RowMapper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RowMapper) EXPECT added in v1.3.1

func (_m *RowMapper) EXPECT() *RowMapper_Expecter

func (*RowMapper) Execute added in v1.3.1

func (_m *RowMapper) Execute(row *sql.Row) interface{}

Execute provides a mock function with given fields: row

type RowMapper_Execute_Call added in v1.3.1

type RowMapper_Execute_Call struct {
	*mock.Call
}

RowMapper_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*RowMapper_Execute_Call) Return added in v1.3.1

func (_c *RowMapper_Execute_Call) Return(_a0 interface{}) *RowMapper_Execute_Call

func (*RowMapper_Execute_Call) Run added in v1.3.1

func (_c *RowMapper_Execute_Call) Run(run func(row *sql.Row)) *RowMapper_Execute_Call

func (*RowMapper_Execute_Call) RunAndReturn added in v1.3.1

func (_c *RowMapper_Execute_Call) RunAndReturn(run func(*sql.Row) interface{}) *RowMapper_Execute_Call

type RowMapper_Expecter added in v1.3.1

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

func (*RowMapper_Expecter) Execute added in v1.3.1

func (_e *RowMapper_Expecter) Execute(row interface{}) *RowMapper_Execute_Call

Execute is a helper method to define mock.On call

  • row *sql.Row

type RowsMapper added in v1.3.1

type RowsMapper struct {
	mock.Mock
}

RowsMapper is an autogenerated mock type for the RowsMapper type

func NewRowsMapper added in v1.3.1

func NewRowsMapper(t mockConstructorTestingTNewRowsMapper) *RowsMapper

NewRowsMapper creates a new instance of RowsMapper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RowsMapper) EXPECT added in v1.3.1

func (_m *RowsMapper) EXPECT() *RowsMapper_Expecter

func (*RowsMapper) Execute added in v1.3.1

func (_m *RowsMapper) Execute(rows *sql.Rows) interface{}

Execute provides a mock function with given fields: rows

type RowsMapper_Execute_Call added in v1.3.1

type RowsMapper_Execute_Call struct {
	*mock.Call
}

RowsMapper_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*RowsMapper_Execute_Call) Return added in v1.3.1

func (_c *RowsMapper_Execute_Call) Return(_a0 interface{}) *RowsMapper_Execute_Call

func (*RowsMapper_Execute_Call) Run added in v1.3.1

func (_c *RowsMapper_Execute_Call) Run(run func(rows *sql.Rows)) *RowsMapper_Execute_Call

func (*RowsMapper_Execute_Call) RunAndReturn added in v1.3.1

func (_c *RowsMapper_Execute_Call) RunAndReturn(run func(*sql.Rows) interface{}) *RowsMapper_Execute_Call

type RowsMapper_Expecter added in v1.3.1

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

func (*RowsMapper_Expecter) Execute added in v1.3.1

func (_e *RowsMapper_Expecter) Execute(rows interface{}) *RowsMapper_Execute_Call

Execute is a helper method to define mock.On call

  • rows *sql.Rows

type RowsNextResultSet added in v1.3.1

type RowsNextResultSet struct {
	mock.Mock
}

RowsNextResultSet is an autogenerated mock type for the RowsNextResultSet type

func NewRowsNextResultSet added in v1.3.1

func NewRowsNextResultSet(t mockConstructorTestingTNewRowsNextResultSet) *RowsNextResultSet

NewRowsNextResultSet creates a new instance of RowsNextResultSet. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RowsNextResultSet) Close added in v1.3.1

func (_m *RowsNextResultSet) Close() error

Close provides a mock function with given fields:

func (*RowsNextResultSet) Columns added in v1.3.1

func (_m *RowsNextResultSet) Columns() []string

Columns provides a mock function with given fields:

func (*RowsNextResultSet) EXPECT added in v1.3.1

func (*RowsNextResultSet) HasNextResultSet added in v1.3.1

func (_m *RowsNextResultSet) HasNextResultSet() bool

HasNextResultSet provides a mock function with given fields:

func (*RowsNextResultSet) Next added in v1.3.1

func (_m *RowsNextResultSet) Next(dest []driver.Value) error

Next provides a mock function with given fields: dest

func (*RowsNextResultSet) NextResultSet added in v1.3.1

func (_m *RowsNextResultSet) NextResultSet() error

NextResultSet provides a mock function with given fields:

type RowsNextResultSet_Close_Call added in v1.3.1

type RowsNextResultSet_Close_Call struct {
	*mock.Call
}

RowsNextResultSet_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*RowsNextResultSet_Close_Call) Return added in v1.3.1

func (*RowsNextResultSet_Close_Call) Run added in v1.3.1

func (*RowsNextResultSet_Close_Call) RunAndReturn added in v1.3.1

func (_c *RowsNextResultSet_Close_Call) RunAndReturn(run func() error) *RowsNextResultSet_Close_Call

type RowsNextResultSet_Columns_Call added in v1.3.1

type RowsNextResultSet_Columns_Call struct {
	*mock.Call
}

RowsNextResultSet_Columns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Columns'

func (*RowsNextResultSet_Columns_Call) Return added in v1.3.1

func (*RowsNextResultSet_Columns_Call) Run added in v1.3.1

func (*RowsNextResultSet_Columns_Call) RunAndReturn added in v1.3.1

type RowsNextResultSet_Expecter added in v1.3.1

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

func (*RowsNextResultSet_Expecter) Close added in v1.3.1

Close is a helper method to define mock.On call

func (*RowsNextResultSet_Expecter) Columns added in v1.3.1

Columns is a helper method to define mock.On call

func (*RowsNextResultSet_Expecter) HasNextResultSet added in v1.3.1

HasNextResultSet is a helper method to define mock.On call

func (*RowsNextResultSet_Expecter) Next added in v1.3.1

func (_e *RowsNextResultSet_Expecter) Next(dest interface{}) *RowsNextResultSet_Next_Call

Next is a helper method to define mock.On call

  • dest []driver.Value

func (*RowsNextResultSet_Expecter) NextResultSet added in v1.3.1

NextResultSet is a helper method to define mock.On call

type RowsNextResultSet_HasNextResultSet_Call added in v1.3.1

type RowsNextResultSet_HasNextResultSet_Call struct {
	*mock.Call
}

RowsNextResultSet_HasNextResultSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasNextResultSet'

func (*RowsNextResultSet_HasNextResultSet_Call) Return added in v1.3.1

func (*RowsNextResultSet_HasNextResultSet_Call) Run added in v1.3.1

func (*RowsNextResultSet_HasNextResultSet_Call) RunAndReturn added in v1.3.1

type RowsNextResultSet_NextResultSet_Call added in v1.3.1

type RowsNextResultSet_NextResultSet_Call struct {
	*mock.Call
}

RowsNextResultSet_NextResultSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NextResultSet'

func (*RowsNextResultSet_NextResultSet_Call) Return added in v1.3.1

func (*RowsNextResultSet_NextResultSet_Call) Run added in v1.3.1

func (*RowsNextResultSet_NextResultSet_Call) RunAndReturn added in v1.3.1

type RowsNextResultSet_Next_Call added in v1.3.1

type RowsNextResultSet_Next_Call struct {
	*mock.Call
}

RowsNextResultSet_Next_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Next'

func (*RowsNextResultSet_Next_Call) Return added in v1.3.1

func (*RowsNextResultSet_Next_Call) Run added in v1.3.1

func (*RowsNextResultSet_Next_Call) RunAndReturn added in v1.3.1

type Transaction added in v1.3.1

type Transaction struct {
	mock.Mock
}

Transaction is an autogenerated mock type for the Transaction type

func NewTransaction added in v1.3.1

func NewTransaction(t mockConstructorTestingTNewTransaction) *Transaction

NewTransaction creates a new instance of Transaction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Transaction) Commit added in v1.3.1

func (_m *Transaction) Commit() error

Commit provides a mock function with given fields:

func (*Transaction) EXPECT added in v1.3.1

func (_m *Transaction) EXPECT() *Transaction_Expecter

func (*Transaction) Execute added in v1.3.1

func (_m *Transaction) Execute(sqlstr string, args ...interface{}) (sql.Result, error)

Execute provides a mock function with given fields: sqlstr, args

func (*Transaction) Insert added in v1.3.1

func (_m *Transaction) Insert(sqlstr string, args ...interface{}) (sql.Result, error)

Insert provides a mock function with given fields: sqlstr, args

func (*Transaction) Update added in v1.3.1

func (_m *Transaction) Update(sqlstr string, args ...interface{}) (sql.Result, error)

Update provides a mock function with given fields: sqlstr, args

type Transaction_Commit_Call added in v1.3.1

type Transaction_Commit_Call struct {
	*mock.Call
}

Transaction_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'

func (*Transaction_Commit_Call) Return added in v1.3.1

func (*Transaction_Commit_Call) Run added in v1.3.1

func (_c *Transaction_Commit_Call) Run(run func()) *Transaction_Commit_Call

func (*Transaction_Commit_Call) RunAndReturn added in v1.3.1

func (_c *Transaction_Commit_Call) RunAndReturn(run func() error) *Transaction_Commit_Call

type Transaction_Execute_Call added in v1.3.1

type Transaction_Execute_Call struct {
	*mock.Call
}

Transaction_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*Transaction_Execute_Call) Return added in v1.3.1

func (*Transaction_Execute_Call) Run added in v1.3.1

func (_c *Transaction_Execute_Call) Run(run func(sqlstr string, args ...interface{})) *Transaction_Execute_Call

func (*Transaction_Execute_Call) RunAndReturn added in v1.3.1

func (_c *Transaction_Execute_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *Transaction_Execute_Call

type Transaction_Expecter added in v1.3.1

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

func (*Transaction_Expecter) Commit added in v1.3.1

Commit is a helper method to define mock.On call

func (*Transaction_Expecter) Execute added in v1.3.1

func (_e *Transaction_Expecter) Execute(sqlstr interface{}, args ...interface{}) *Transaction_Execute_Call

Execute is a helper method to define mock.On call

  • sqlstr string
  • args ...interface{}

func (*Transaction_Expecter) Insert added in v1.3.1

func (_e *Transaction_Expecter) Insert(sqlstr interface{}, args ...interface{}) *Transaction_Insert_Call

Insert is a helper method to define mock.On call

  • sqlstr string
  • args ...interface{}

func (*Transaction_Expecter) Update added in v1.3.1

func (_e *Transaction_Expecter) Update(sqlstr interface{}, args ...interface{}) *Transaction_Update_Call

Update is a helper method to define mock.On call

  • sqlstr string
  • args ...interface{}

type Transaction_Insert_Call added in v1.3.1

type Transaction_Insert_Call struct {
	*mock.Call
}

Transaction_Insert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Insert'

func (*Transaction_Insert_Call) Return added in v1.3.1

func (*Transaction_Insert_Call) Run added in v1.3.1

func (_c *Transaction_Insert_Call) Run(run func(sqlstr string, args ...interface{})) *Transaction_Insert_Call

func (*Transaction_Insert_Call) RunAndReturn added in v1.3.1

func (_c *Transaction_Insert_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *Transaction_Insert_Call

type Transaction_Update_Call added in v1.3.1

type Transaction_Update_Call struct {
	*mock.Call
}

Transaction_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*Transaction_Update_Call) Return added in v1.3.1

func (*Transaction_Update_Call) Run added in v1.3.1

func (_c *Transaction_Update_Call) Run(run func(sqlstr string, args ...interface{})) *Transaction_Update_Call

func (*Transaction_Update_Call) RunAndReturn added in v1.3.1

func (_c *Transaction_Update_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *Transaction_Update_Call

Jump to

Keyboard shortcuts

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