mocks

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	LastInsertIdStub func() (int64, error)

	RowsAffectedStub func() (int64, error)
	// contains filtered or unexported fields
}

func (*Result) Invocations

func (fake *Result) Invocations() map[string][][]interface{}

func (*Result) LastInsertId

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

func (*Result) LastInsertIdCallCount

func (fake *Result) LastInsertIdCallCount() int

func (*Result) LastInsertIdCalls

func (fake *Result) LastInsertIdCalls(stub func() (int64, error))

func (*Result) LastInsertIdReturns

func (fake *Result) LastInsertIdReturns(result1 int64, result2 error)

func (*Result) LastInsertIdReturnsOnCall

func (fake *Result) LastInsertIdReturnsOnCall(i int, result1 int64, result2 error)

func (*Result) RowsAffected

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

func (*Result) RowsAffectedCallCount

func (fake *Result) RowsAffectedCallCount() int

func (*Result) RowsAffectedCalls

func (fake *Result) RowsAffectedCalls(stub func() (int64, error))

func (*Result) RowsAffectedReturns

func (fake *Result) RowsAffectedReturns(result1 int64, result2 error)

func (*Result) RowsAffectedReturnsOnCall

func (fake *Result) RowsAffectedReturnsOnCall(i int, result1 int64, result2 error)

type UserDB

type UserDB struct {
	ExecStub func(string, string, ...interface{}) (sql.Result, error)

	GetStub func(string, interface{}, string, ...interface{}) error

	QueryxStub func(string, string, ...interface{}) (*sqlx.Rows, error)

	RebindStub func(string) string
	// contains filtered or unexported fields
}

func (*UserDB) Exec

func (fake *UserDB) Exec(arg1 string, arg2 string, arg3 ...interface{}) (sql.Result, error)

func (*UserDB) ExecArgsForCall

func (fake *UserDB) ExecArgsForCall(i int) (string, string, []interface{})

func (*UserDB) ExecCallCount

func (fake *UserDB) ExecCallCount() int

func (*UserDB) ExecCalls

func (fake *UserDB) ExecCalls(stub func(string, string, ...interface{}) (sql.Result, error))

func (*UserDB) ExecReturns

func (fake *UserDB) ExecReturns(result1 sql.Result, result2 error)

func (*UserDB) ExecReturnsOnCall

func (fake *UserDB) ExecReturnsOnCall(i int, result1 sql.Result, result2 error)

func (*UserDB) Get

func (fake *UserDB) Get(arg1 string, arg2 interface{}, arg3 string, arg4 ...interface{}) error

func (*UserDB) GetArgsForCall

func (fake *UserDB) GetArgsForCall(i int) (string, interface{}, string, []interface{})

func (*UserDB) GetCallCount

func (fake *UserDB) GetCallCount() int

func (*UserDB) GetCalls

func (fake *UserDB) GetCalls(stub func(string, interface{}, string, ...interface{}) error)

func (*UserDB) GetReturns

func (fake *UserDB) GetReturns(result1 error)

func (*UserDB) GetReturnsOnCall

func (fake *UserDB) GetReturnsOnCall(i int, result1 error)

func (*UserDB) Invocations

func (fake *UserDB) Invocations() map[string][][]interface{}

func (*UserDB) Queryx

func (fake *UserDB) Queryx(arg1 string, arg2 string, arg3 ...interface{}) (*sqlx.Rows, error)

func (*UserDB) QueryxArgsForCall

func (fake *UserDB) QueryxArgsForCall(i int) (string, string, []interface{})

func (*UserDB) QueryxCallCount

func (fake *UserDB) QueryxCallCount() int

func (*UserDB) QueryxCalls

func (fake *UserDB) QueryxCalls(stub func(string, string, ...interface{}) (*sqlx.Rows, error))

func (*UserDB) QueryxReturns

func (fake *UserDB) QueryxReturns(result1 *sqlx.Rows, result2 error)

func (*UserDB) QueryxReturnsOnCall

func (fake *UserDB) QueryxReturnsOnCall(i int, result1 *sqlx.Rows, result2 error)

func (*UserDB) Rebind

func (fake *UserDB) Rebind(arg1 string) string

func (*UserDB) RebindArgsForCall

func (fake *UserDB) RebindArgsForCall(i int) string

func (*UserDB) RebindCallCount

func (fake *UserDB) RebindCallCount() int

func (*UserDB) RebindCalls

func (fake *UserDB) RebindCalls(stub func(string) string)

func (*UserDB) RebindReturns

func (fake *UserDB) RebindReturns(result1 string)

func (*UserDB) RebindReturnsOnCall

func (fake *UserDB) RebindReturnsOnCall(i int, result1 string)

type UserTx

type UserTx struct {
	ExecStub func(string, string, ...interface{}) (sql.Result, error)

	QueryxStub func(string, string, ...interface{}) (*sqlx.Rows, error)

	RebindStub func(string) string
	// contains filtered or unexported fields
}

func (*UserTx) Exec

func (fake *UserTx) Exec(arg1 string, arg2 string, arg3 ...interface{}) (sql.Result, error)

func (*UserTx) ExecArgsForCall

func (fake *UserTx) ExecArgsForCall(i int) (string, string, []interface{})

func (*UserTx) ExecCallCount

func (fake *UserTx) ExecCallCount() int

func (*UserTx) ExecCalls

func (fake *UserTx) ExecCalls(stub func(string, string, ...interface{}) (sql.Result, error))

func (*UserTx) ExecReturns

func (fake *UserTx) ExecReturns(result1 sql.Result, result2 error)

func (*UserTx) ExecReturnsOnCall

func (fake *UserTx) ExecReturnsOnCall(i int, result1 sql.Result, result2 error)

func (*UserTx) Invocations

func (fake *UserTx) Invocations() map[string][][]interface{}

func (*UserTx) Queryx

func (fake *UserTx) Queryx(arg1 string, arg2 string, arg3 ...interface{}) (*sqlx.Rows, error)

func (*UserTx) QueryxArgsForCall

func (fake *UserTx) QueryxArgsForCall(i int) (string, string, []interface{})

func (*UserTx) QueryxCallCount

func (fake *UserTx) QueryxCallCount() int

func (*UserTx) QueryxCalls

func (fake *UserTx) QueryxCalls(stub func(string, string, ...interface{}) (*sqlx.Rows, error))

func (*UserTx) QueryxReturns

func (fake *UserTx) QueryxReturns(result1 *sqlx.Rows, result2 error)

func (*UserTx) QueryxReturnsOnCall

func (fake *UserTx) QueryxReturnsOnCall(i int, result1 *sqlx.Rows, result2 error)

func (*UserTx) Rebind

func (fake *UserTx) Rebind(arg1 string) string

func (*UserTx) RebindArgsForCall

func (fake *UserTx) RebindArgsForCall(i int) string

func (*UserTx) RebindCallCount

func (fake *UserTx) RebindCallCount() int

func (*UserTx) RebindCalls

func (fake *UserTx) RebindCalls(stub func(string) string)

func (*UserTx) RebindReturns

func (fake *UserTx) RebindReturns(result1 string)

func (*UserTx) RebindReturnsOnCall

func (fake *UserTx) RebindReturnsOnCall(i int, result1 string)

Jump to

Keyboard shortcuts

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