mocks

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Client) BindNamed added in v0.20.1

func (_m *Client) BindNamed(query string, arg interface{}) (string, []interface{}, error)

BindNamed provides a mock function with given fields: query, arg

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) Exec

func (_m *Client) Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error)

Exec provides a mock function with given fields: ctx, query, args

func (*Client) ExecMultiInTx added in v0.19.4

func (_m *Client) ExecMultiInTx(ctx context.Context, sqlers ...db.Sqler) ([]sql.Result, error)

ExecMultiInTx provides a mock function with given fields: ctx, sqlers

func (*Client) Get

func (_m *Client) Get(ctx context.Context, dest interface{}, query string, args ...interface{}) error

Get provides a mock function with given fields: ctx, dest, query, args

func (*Client) GetResult

func (_m *Client) GetResult(ctx context.Context, query string, args ...interface{}) (*db.Result, error)

GetResult provides a mock function with given fields: ctx, query, args

func (*Client) GetSingleScalarValue

func (_m *Client) GetSingleScalarValue(ctx context.Context, query string, args ...interface{}) (int, error)

GetSingleScalarValue provides a mock function with given fields: ctx, query, args

func (*Client) NamedExec added in v0.20.1

func (_m *Client) NamedExec(ctx context.Context, query string, args ...interface{}) (sql.Result, error)

NamedExec provides a mock function with given fields: ctx, query, args

func (*Client) NamedQuery added in v0.20.1

func (_m *Client) NamedQuery(ctx context.Context, query string, arg interface{}) (*sqlx.Rows, error)

NamedQuery provides a mock function with given fields: ctx, query, arg

func (*Client) NamedSelect added in v0.20.1

func (_m *Client) NamedSelect(ctx context.Context, dest interface{}, query string, arg interface{}) error

NamedSelect provides a mock function with given fields: ctx, dest, query, arg

func (*Client) Prepare

func (_m *Client) Prepare(ctx context.Context, query string) (*sql.Stmt, error)

Prepare provides a mock function with given fields: ctx, query

func (*Client) PrepareNamed added in v0.20.1

func (_m *Client) PrepareNamed(ctx context.Context, query string) (*sqlx.NamedStmt, error)

PrepareNamed provides a mock function with given fields: ctx, query

func (*Client) Preparex added in v0.20.0

func (_m *Client) Preparex(ctx context.Context, query string) (*sqlx.Stmt, error)

Preparex provides a mock function with given fields: ctx, query

func (*Client) Query

func (_m *Client) Query(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

Query provides a mock function with given fields: ctx, query, args

func (*Client) QueryRow

func (_m *Client) QueryRow(ctx context.Context, query string, args ...interface{}) *sql.Row

QueryRow provides a mock function with given fields: ctx, query, args

func (*Client) Queryx

func (_m *Client) Queryx(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)

Queryx provides a mock function with given fields: ctx, query, args

func (*Client) Select

func (_m *Client) Select(ctx context.Context, dest interface{}, query string, args ...interface{}) error

Select provides a mock function with given fields: ctx, dest, query, args

func (*Client) WithTx

func (_m *Client) WithTx(ctx context.Context, ops *sql.TxOptions, do func(context.Context, *sql.Tx) error) error

WithTx provides a mock function with given fields: ctx, ops, do

type Client_BindNamed_Call added in v0.20.1

type Client_BindNamed_Call struct {
	*mock.Call
}

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

func (*Client_BindNamed_Call) Return added in v0.20.1

func (_c *Client_BindNamed_Call) Return(_a0 string, _a1 []interface{}, _a2 error) *Client_BindNamed_Call

func (*Client_BindNamed_Call) Run added in v0.20.1

func (_c *Client_BindNamed_Call) Run(run func(query string, arg interface{})) *Client_BindNamed_Call

func (*Client_BindNamed_Call) RunAndReturn added in v0.20.1

func (_c *Client_BindNamed_Call) RunAndReturn(run func(string, interface{}) (string, []interface{}, error)) *Client_BindNamed_Call

type Client_ExecMultiInTx_Call added in v0.19.4

type Client_ExecMultiInTx_Call struct {
	*mock.Call
}

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

func (*Client_ExecMultiInTx_Call) Return added in v0.19.4

func (*Client_ExecMultiInTx_Call) Run added in v0.19.4

func (_c *Client_ExecMultiInTx_Call) Run(run func(ctx context.Context, sqlers ...db.Sqler)) *Client_ExecMultiInTx_Call

func (*Client_ExecMultiInTx_Call) RunAndReturn added in v0.19.4

type Client_Exec_Call

type Client_Exec_Call struct {
	*mock.Call
}

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

func (*Client_Exec_Call) Return

func (_c *Client_Exec_Call) Return(_a0 sql.Result, _a1 error) *Client_Exec_Call

func (*Client_Exec_Call) Run

func (_c *Client_Exec_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_Exec_Call

func (*Client_Exec_Call) RunAndReturn

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

type Client_Expecter

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

func (*Client_Expecter) BindNamed added in v0.20.1

func (_e *Client_Expecter) BindNamed(query interface{}, arg interface{}) *Client_BindNamed_Call

BindNamed is a helper method to define mock.On call

  • query string
  • arg interface{}

func (*Client_Expecter) Exec

func (_e *Client_Expecter) Exec(ctx interface{}, query interface{}, args ...interface{}) *Client_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...interface{}

func (*Client_Expecter) ExecMultiInTx added in v0.19.4

func (_e *Client_Expecter) ExecMultiInTx(ctx interface{}, sqlers ...interface{}) *Client_ExecMultiInTx_Call

ExecMultiInTx is a helper method to define mock.On call

  • ctx context.Context
  • sqlers ...db.Sqler

func (*Client_Expecter) Get

func (_e *Client_Expecter) Get(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Client_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • dest interface{}
  • query string
  • args ...interface{}

func (*Client_Expecter) GetResult

func (_e *Client_Expecter) GetResult(ctx interface{}, query interface{}, args ...interface{}) *Client_GetResult_Call

GetResult is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...interface{}

func (*Client_Expecter) GetSingleScalarValue

func (_e *Client_Expecter) GetSingleScalarValue(ctx interface{}, query interface{}, args ...interface{}) *Client_GetSingleScalarValue_Call

GetSingleScalarValue is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...interface{}

func (*Client_Expecter) NamedExec added in v0.20.1

func (_e *Client_Expecter) NamedExec(ctx interface{}, query interface{}, args ...interface{}) *Client_NamedExec_Call

NamedExec is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...interface{}

func (*Client_Expecter) NamedQuery added in v0.20.1

func (_e *Client_Expecter) NamedQuery(ctx interface{}, query interface{}, arg interface{}) *Client_NamedQuery_Call

NamedQuery is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • arg interface{}

func (*Client_Expecter) NamedSelect added in v0.20.1

func (_e *Client_Expecter) NamedSelect(ctx interface{}, dest interface{}, query interface{}, arg interface{}) *Client_NamedSelect_Call

NamedSelect is a helper method to define mock.On call

  • ctx context.Context
  • dest interface{}
  • query string
  • arg interface{}

func (*Client_Expecter) Prepare

func (_e *Client_Expecter) Prepare(ctx interface{}, query interface{}) *Client_Prepare_Call

Prepare is a helper method to define mock.On call

  • ctx context.Context
  • query string

func (*Client_Expecter) PrepareNamed added in v0.20.1

func (_e *Client_Expecter) PrepareNamed(ctx interface{}, query interface{}) *Client_PrepareNamed_Call

PrepareNamed is a helper method to define mock.On call

  • ctx context.Context
  • query string

func (*Client_Expecter) Preparex added in v0.20.0

func (_e *Client_Expecter) Preparex(ctx interface{}, query interface{}) *Client_Preparex_Call

Preparex is a helper method to define mock.On call

  • ctx context.Context
  • query string

func (*Client_Expecter) Query

func (_e *Client_Expecter) Query(ctx interface{}, query interface{}, args ...interface{}) *Client_Query_Call

Query is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...interface{}

func (*Client_Expecter) QueryRow

func (_e *Client_Expecter) QueryRow(ctx interface{}, query interface{}, args ...interface{}) *Client_QueryRow_Call

QueryRow is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...interface{}

func (*Client_Expecter) Queryx

func (_e *Client_Expecter) Queryx(ctx interface{}, query interface{}, args ...interface{}) *Client_Queryx_Call

Queryx is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...interface{}

func (*Client_Expecter) Select

func (_e *Client_Expecter) Select(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Client_Select_Call

Select is a helper method to define mock.On call

  • ctx context.Context
  • dest interface{}
  • query string
  • args ...interface{}

func (*Client_Expecter) WithTx

func (_e *Client_Expecter) WithTx(ctx interface{}, ops interface{}, do interface{}) *Client_WithTx_Call

WithTx is a helper method to define mock.On call

  • ctx context.Context
  • ops *sql.TxOptions
  • do func(context.Context , *sql.Tx) error

type Client_GetResult_Call

type Client_GetResult_Call struct {
	*mock.Call
}

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

func (*Client_GetResult_Call) Return

func (*Client_GetResult_Call) Run

func (_c *Client_GetResult_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_GetResult_Call

func (*Client_GetResult_Call) RunAndReturn

func (_c *Client_GetResult_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*db.Result, error)) *Client_GetResult_Call

type Client_GetSingleScalarValue_Call

type Client_GetSingleScalarValue_Call struct {
	*mock.Call
}

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

func (*Client_GetSingleScalarValue_Call) Return

func (*Client_GetSingleScalarValue_Call) Run

func (_c *Client_GetSingleScalarValue_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_GetSingleScalarValue_Call

func (*Client_GetSingleScalarValue_Call) RunAndReturn

func (_c *Client_GetSingleScalarValue_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (int, error)) *Client_GetSingleScalarValue_Call

type Client_Get_Call

type Client_Get_Call struct {
	*mock.Call
}

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

func (*Client_Get_Call) Return

func (_c *Client_Get_Call) Return(_a0 error) *Client_Get_Call

func (*Client_Get_Call) Run

func (_c *Client_Get_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *Client_Get_Call

func (*Client_Get_Call) RunAndReturn

func (_c *Client_Get_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *Client_Get_Call

type Client_NamedExec_Call added in v0.20.1

type Client_NamedExec_Call struct {
	*mock.Call
}

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

func (*Client_NamedExec_Call) Return added in v0.20.1

func (*Client_NamedExec_Call) Run added in v0.20.1

func (_c *Client_NamedExec_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_NamedExec_Call

func (*Client_NamedExec_Call) RunAndReturn added in v0.20.1

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

type Client_NamedQuery_Call added in v0.20.1

type Client_NamedQuery_Call struct {
	*mock.Call
}

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

func (*Client_NamedQuery_Call) Return added in v0.20.1

func (*Client_NamedQuery_Call) Run added in v0.20.1

func (_c *Client_NamedQuery_Call) Run(run func(ctx context.Context, query string, arg interface{})) *Client_NamedQuery_Call

func (*Client_NamedQuery_Call) RunAndReturn added in v0.20.1

func (_c *Client_NamedQuery_Call) RunAndReturn(run func(context.Context, string, interface{}) (*sqlx.Rows, error)) *Client_NamedQuery_Call

type Client_NamedSelect_Call added in v0.20.1

type Client_NamedSelect_Call struct {
	*mock.Call
}

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

func (*Client_NamedSelect_Call) Return added in v0.20.1

func (*Client_NamedSelect_Call) Run added in v0.20.1

func (_c *Client_NamedSelect_Call) Run(run func(ctx context.Context, dest interface{}, query string, arg interface{})) *Client_NamedSelect_Call

func (*Client_NamedSelect_Call) RunAndReturn added in v0.20.1

func (_c *Client_NamedSelect_Call) RunAndReturn(run func(context.Context, interface{}, string, interface{}) error) *Client_NamedSelect_Call

type Client_PrepareNamed_Call added in v0.20.1

type Client_PrepareNamed_Call struct {
	*mock.Call
}

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

func (*Client_PrepareNamed_Call) Return added in v0.20.1

func (*Client_PrepareNamed_Call) Run added in v0.20.1

func (*Client_PrepareNamed_Call) RunAndReturn added in v0.20.1

type Client_Prepare_Call

type Client_Prepare_Call struct {
	*mock.Call
}

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

func (*Client_Prepare_Call) Return

func (_c *Client_Prepare_Call) Return(_a0 *sql.Stmt, _a1 error) *Client_Prepare_Call

func (*Client_Prepare_Call) Run

func (_c *Client_Prepare_Call) Run(run func(ctx context.Context, query string)) *Client_Prepare_Call

func (*Client_Prepare_Call) RunAndReturn

func (_c *Client_Prepare_Call) RunAndReturn(run func(context.Context, string) (*sql.Stmt, error)) *Client_Prepare_Call

type Client_Preparex_Call added in v0.20.0

type Client_Preparex_Call struct {
	*mock.Call
}

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

func (*Client_Preparex_Call) Return added in v0.20.0

func (_c *Client_Preparex_Call) Return(_a0 *sqlx.Stmt, _a1 error) *Client_Preparex_Call

func (*Client_Preparex_Call) Run added in v0.20.0

func (_c *Client_Preparex_Call) Run(run func(ctx context.Context, query string)) *Client_Preparex_Call

func (*Client_Preparex_Call) RunAndReturn added in v0.20.0

func (_c *Client_Preparex_Call) RunAndReturn(run func(context.Context, string) (*sqlx.Stmt, error)) *Client_Preparex_Call

type Client_QueryRow_Call

type Client_QueryRow_Call struct {
	*mock.Call
}

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

func (*Client_QueryRow_Call) Return

func (*Client_QueryRow_Call) Run

func (_c *Client_QueryRow_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_QueryRow_Call

func (*Client_QueryRow_Call) RunAndReturn

func (_c *Client_QueryRow_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sql.Row) *Client_QueryRow_Call

type Client_Query_Call

type Client_Query_Call struct {
	*mock.Call
}

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

func (*Client_Query_Call) Return

func (_c *Client_Query_Call) Return(_a0 *sql.Rows, _a1 error) *Client_Query_Call

func (*Client_Query_Call) Run

func (_c *Client_Query_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_Query_Call

func (*Client_Query_Call) RunAndReturn

func (_c *Client_Query_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *Client_Query_Call

type Client_Queryx_Call

type Client_Queryx_Call struct {
	*mock.Call
}

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

func (*Client_Queryx_Call) Return

func (_c *Client_Queryx_Call) Return(_a0 *sqlx.Rows, _a1 error) *Client_Queryx_Call

func (*Client_Queryx_Call) Run

func (_c *Client_Queryx_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_Queryx_Call

func (*Client_Queryx_Call) RunAndReturn

func (_c *Client_Queryx_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sqlx.Rows, error)) *Client_Queryx_Call

type Client_Select_Call

type Client_Select_Call struct {
	*mock.Call
}

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

func (*Client_Select_Call) Return

func (_c *Client_Select_Call) Return(_a0 error) *Client_Select_Call

func (*Client_Select_Call) Run

func (_c *Client_Select_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *Client_Select_Call

func (*Client_Select_Call) RunAndReturn

func (_c *Client_Select_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *Client_Select_Call

type Client_WithTx_Call

type Client_WithTx_Call struct {
	*mock.Call
}

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

func (*Client_WithTx_Call) Return

func (_c *Client_WithTx_Call) Return(_a0 error) *Client_WithTx_Call

func (*Client_WithTx_Call) Run

func (_c *Client_WithTx_Call) Run(run func(ctx context.Context, ops *sql.TxOptions, do func(context.Context, *sql.Tx) error)) *Client_WithTx_Call

func (*Client_WithTx_Call) RunAndReturn

type QueryBuilder

type QueryBuilder struct {
	mock.Mock
}

QueryBuilder is an autogenerated mock type for the QueryBuilder type

func NewQueryBuilder

func NewQueryBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *QueryBuilder

NewQueryBuilder creates a new instance of QueryBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*QueryBuilder) EXPECT

func (_m *QueryBuilder) EXPECT() *QueryBuilder_Expecter

func (*QueryBuilder) GroupBy

func (_m *QueryBuilder) GroupBy(field ...string) db.QueryBuilder

GroupBy provides a mock function with given fields: field

func (*QueryBuilder) Joins

func (_m *QueryBuilder) Joins(joins []string) db.QueryBuilder

Joins provides a mock function with given fields: joins

func (*QueryBuilder) OrderBy

func (_m *QueryBuilder) OrderBy(field string, direction string) db.QueryBuilder

OrderBy provides a mock function with given fields: field, direction

func (*QueryBuilder) Page

func (_m *QueryBuilder) Page(offset int, size int) db.QueryBuilder

Page provides a mock function with given fields: offset, size

func (*QueryBuilder) Table

func (_m *QueryBuilder) Table(table string) db.QueryBuilder

Table provides a mock function with given fields: table

func (*QueryBuilder) Where

func (_m *QueryBuilder) Where(query interface{}, args ...interface{}) db.QueryBuilder

Where provides a mock function with given fields: query, args

type QueryBuilder_Expecter

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

func (*QueryBuilder_Expecter) GroupBy

func (_e *QueryBuilder_Expecter) GroupBy(field ...interface{}) *QueryBuilder_GroupBy_Call

GroupBy is a helper method to define mock.On call

  • field ...string

func (*QueryBuilder_Expecter) Joins

func (_e *QueryBuilder_Expecter) Joins(joins interface{}) *QueryBuilder_Joins_Call

Joins is a helper method to define mock.On call

  • joins []string

func (*QueryBuilder_Expecter) OrderBy

func (_e *QueryBuilder_Expecter) OrderBy(field interface{}, direction interface{}) *QueryBuilder_OrderBy_Call

OrderBy is a helper method to define mock.On call

  • field string
  • direction string

func (*QueryBuilder_Expecter) Page

func (_e *QueryBuilder_Expecter) Page(offset interface{}, size interface{}) *QueryBuilder_Page_Call

Page is a helper method to define mock.On call

  • offset int
  • size int

func (*QueryBuilder_Expecter) Table

func (_e *QueryBuilder_Expecter) Table(table interface{}) *QueryBuilder_Table_Call

Table is a helper method to define mock.On call

  • table string

func (*QueryBuilder_Expecter) Where

func (_e *QueryBuilder_Expecter) Where(query interface{}, args ...interface{}) *QueryBuilder_Where_Call

Where is a helper method to define mock.On call

  • query interface{}
  • args ...interface{}

type QueryBuilder_GroupBy_Call

type QueryBuilder_GroupBy_Call struct {
	*mock.Call
}

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

func (*QueryBuilder_GroupBy_Call) Return

func (*QueryBuilder_GroupBy_Call) Run

func (_c *QueryBuilder_GroupBy_Call) Run(run func(field ...string)) *QueryBuilder_GroupBy_Call

func (*QueryBuilder_GroupBy_Call) RunAndReturn

type QueryBuilder_Joins_Call

type QueryBuilder_Joins_Call struct {
	*mock.Call
}

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

func (*QueryBuilder_Joins_Call) Return

func (*QueryBuilder_Joins_Call) Run

func (_c *QueryBuilder_Joins_Call) Run(run func(joins []string)) *QueryBuilder_Joins_Call

func (*QueryBuilder_Joins_Call) RunAndReturn

func (_c *QueryBuilder_Joins_Call) RunAndReturn(run func([]string) db.QueryBuilder) *QueryBuilder_Joins_Call

type QueryBuilder_OrderBy_Call

type QueryBuilder_OrderBy_Call struct {
	*mock.Call
}

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

func (*QueryBuilder_OrderBy_Call) Return

func (*QueryBuilder_OrderBy_Call) Run

func (_c *QueryBuilder_OrderBy_Call) Run(run func(field string, direction string)) *QueryBuilder_OrderBy_Call

func (*QueryBuilder_OrderBy_Call) RunAndReturn

type QueryBuilder_Page_Call

type QueryBuilder_Page_Call struct {
	*mock.Call
}

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

func (*QueryBuilder_Page_Call) Return

func (*QueryBuilder_Page_Call) Run

func (_c *QueryBuilder_Page_Call) Run(run func(offset int, size int)) *QueryBuilder_Page_Call

func (*QueryBuilder_Page_Call) RunAndReturn

func (_c *QueryBuilder_Page_Call) RunAndReturn(run func(int, int) db.QueryBuilder) *QueryBuilder_Page_Call

type QueryBuilder_Table_Call

type QueryBuilder_Table_Call struct {
	*mock.Call
}

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

func (*QueryBuilder_Table_Call) Return

func (*QueryBuilder_Table_Call) Run

func (_c *QueryBuilder_Table_Call) Run(run func(table string)) *QueryBuilder_Table_Call

func (*QueryBuilder_Table_Call) RunAndReturn

type QueryBuilder_Where_Call

type QueryBuilder_Where_Call struct {
	*mock.Call
}

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

func (*QueryBuilder_Where_Call) Return

func (*QueryBuilder_Where_Call) Run

func (_c *QueryBuilder_Where_Call) Run(run func(query interface{}, args ...interface{})) *QueryBuilder_Where_Call

func (*QueryBuilder_Where_Call) RunAndReturn

func (_c *QueryBuilder_Where_Call) RunAndReturn(run func(interface{}, ...interface{}) db.QueryBuilder) *QueryBuilder_Where_Call

type SqlResult

type SqlResult struct {
	mock.Mock
}

SqlResult is an autogenerated mock type for the SqlResult type

func NewSqlResult

func NewSqlResult(t interface {
	mock.TestingT
	Cleanup(func())
}) *SqlResult

NewSqlResult creates a new instance of SqlResult. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SqlResult) EXPECT

func (_m *SqlResult) EXPECT() *SqlResult_Expecter

func (*SqlResult) LastInsertId

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

LastInsertId provides a mock function with given fields:

func (*SqlResult) RowsAffected

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

RowsAffected provides a mock function with given fields:

type SqlResult_Expecter

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

func (*SqlResult_Expecter) LastInsertId

func (_e *SqlResult_Expecter) LastInsertId() *SqlResult_LastInsertId_Call

LastInsertId is a helper method to define mock.On call

func (*SqlResult_Expecter) RowsAffected

func (_e *SqlResult_Expecter) RowsAffected() *SqlResult_RowsAffected_Call

RowsAffected is a helper method to define mock.On call

type SqlResult_LastInsertId_Call

type SqlResult_LastInsertId_Call struct {
	*mock.Call
}

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

func (*SqlResult_LastInsertId_Call) Return

func (*SqlResult_LastInsertId_Call) Run

func (*SqlResult_LastInsertId_Call) RunAndReturn

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

type SqlResult_RowsAffected_Call

type SqlResult_RowsAffected_Call struct {
	*mock.Call
}

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

func (*SqlResult_RowsAffected_Call) Return

func (*SqlResult_RowsAffected_Call) Run

func (*SqlResult_RowsAffected_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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