mocks

package
v1.5.12 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 6 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.

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 FabricCADB

type FabricCADB struct {
	BeginTxStub func() db.FabricCATx

	CloseStub func() error

	DriverNameStub func() string

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

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

	IsInitializedStub func() bool

	MustBeginStub func() *sqlx.Tx

	NamedExecStub func(string, string, interface{}) (sql.Result, error)

	PingContextStub func(context.Context) error

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

	RebindStub func(string) string

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

	SetDBInitializedStub func(bool)

	SetMaxOpenConnsStub func(int)
	// contains filtered or unexported fields
}

func (*FabricCADB) BeginTx

func (fake *FabricCADB) BeginTx() db.FabricCATx

func (*FabricCADB) BeginTxCallCount

func (fake *FabricCADB) BeginTxCallCount() int

func (*FabricCADB) BeginTxCalls

func (fake *FabricCADB) BeginTxCalls(stub func() db.FabricCATx)

func (*FabricCADB) BeginTxReturns

func (fake *FabricCADB) BeginTxReturns(result1 db.FabricCATx)

func (*FabricCADB) BeginTxReturnsOnCall

func (fake *FabricCADB) BeginTxReturnsOnCall(i int, result1 db.FabricCATx)

func (*FabricCADB) Close

func (fake *FabricCADB) Close() error

func (*FabricCADB) CloseCallCount

func (fake *FabricCADB) CloseCallCount() int

func (*FabricCADB) CloseCalls

func (fake *FabricCADB) CloseCalls(stub func() error)

func (*FabricCADB) CloseReturns

func (fake *FabricCADB) CloseReturns(result1 error)

func (*FabricCADB) CloseReturnsOnCall

func (fake *FabricCADB) CloseReturnsOnCall(i int, result1 error)

func (*FabricCADB) DriverName

func (fake *FabricCADB) DriverName() string

func (*FabricCADB) DriverNameCallCount

func (fake *FabricCADB) DriverNameCallCount() int

func (*FabricCADB) DriverNameCalls

func (fake *FabricCADB) DriverNameCalls(stub func() string)

func (*FabricCADB) DriverNameReturns

func (fake *FabricCADB) DriverNameReturns(result1 string)

func (*FabricCADB) DriverNameReturnsOnCall

func (fake *FabricCADB) DriverNameReturnsOnCall(i int, result1 string)

func (*FabricCADB) Exec

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

func (*FabricCADB) ExecArgsForCall

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

func (*FabricCADB) ExecCallCount

func (fake *FabricCADB) ExecCallCount() int

func (*FabricCADB) ExecCalls

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

func (*FabricCADB) ExecReturns

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

func (*FabricCADB) ExecReturnsOnCall

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

func (*FabricCADB) Get

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

func (*FabricCADB) GetArgsForCall

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

func (*FabricCADB) GetCallCount

func (fake *FabricCADB) GetCallCount() int

func (*FabricCADB) GetCalls

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

func (*FabricCADB) GetReturns

func (fake *FabricCADB) GetReturns(result1 error)

func (*FabricCADB) GetReturnsOnCall

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

func (*FabricCADB) Invocations

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

func (*FabricCADB) IsInitialized

func (fake *FabricCADB) IsInitialized() bool

func (*FabricCADB) IsInitializedCallCount

func (fake *FabricCADB) IsInitializedCallCount() int

func (*FabricCADB) IsInitializedCalls

func (fake *FabricCADB) IsInitializedCalls(stub func() bool)

func (*FabricCADB) IsInitializedReturns

func (fake *FabricCADB) IsInitializedReturns(result1 bool)

func (*FabricCADB) IsInitializedReturnsOnCall

func (fake *FabricCADB) IsInitializedReturnsOnCall(i int, result1 bool)

func (*FabricCADB) MustBegin

func (fake *FabricCADB) MustBegin() *sqlx.Tx

func (*FabricCADB) MustBeginCallCount

func (fake *FabricCADB) MustBeginCallCount() int

func (*FabricCADB) MustBeginCalls

func (fake *FabricCADB) MustBeginCalls(stub func() *sqlx.Tx)

func (*FabricCADB) MustBeginReturns

func (fake *FabricCADB) MustBeginReturns(result1 *sqlx.Tx)

func (*FabricCADB) MustBeginReturnsOnCall

func (fake *FabricCADB) MustBeginReturnsOnCall(i int, result1 *sqlx.Tx)

func (*FabricCADB) NamedExec

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

func (*FabricCADB) NamedExecArgsForCall

func (fake *FabricCADB) NamedExecArgsForCall(i int) (string, string, interface{})

func (*FabricCADB) NamedExecCallCount

func (fake *FabricCADB) NamedExecCallCount() int

func (*FabricCADB) NamedExecCalls

func (fake *FabricCADB) NamedExecCalls(stub func(string, string, interface{}) (sql.Result, error))

func (*FabricCADB) NamedExecReturns

func (fake *FabricCADB) NamedExecReturns(result1 sql.Result, result2 error)

func (*FabricCADB) NamedExecReturnsOnCall

func (fake *FabricCADB) NamedExecReturnsOnCall(i int, result1 sql.Result, result2 error)

func (*FabricCADB) PingContext

func (fake *FabricCADB) PingContext(arg1 context.Context) error

func (*FabricCADB) PingContextArgsForCall

func (fake *FabricCADB) PingContextArgsForCall(i int) context.Context

func (*FabricCADB) PingContextCallCount

func (fake *FabricCADB) PingContextCallCount() int

func (*FabricCADB) PingContextCalls

func (fake *FabricCADB) PingContextCalls(stub func(context.Context) error)

func (*FabricCADB) PingContextReturns

func (fake *FabricCADB) PingContextReturns(result1 error)

func (*FabricCADB) PingContextReturnsOnCall

func (fake *FabricCADB) PingContextReturnsOnCall(i int, result1 error)

func (*FabricCADB) Queryx

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

func (*FabricCADB) QueryxArgsForCall

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

func (*FabricCADB) QueryxCallCount

func (fake *FabricCADB) QueryxCallCount() int

func (*FabricCADB) QueryxCalls

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

func (*FabricCADB) QueryxReturns

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

func (*FabricCADB) QueryxReturnsOnCall

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

func (*FabricCADB) Rebind

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

func (*FabricCADB) RebindArgsForCall

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

func (*FabricCADB) RebindCallCount

func (fake *FabricCADB) RebindCallCount() int

func (*FabricCADB) RebindCalls

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

func (*FabricCADB) RebindReturns

func (fake *FabricCADB) RebindReturns(result1 string)

func (*FabricCADB) RebindReturnsOnCall

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

func (*FabricCADB) Select

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

func (*FabricCADB) SelectArgsForCall

func (fake *FabricCADB) SelectArgsForCall(i int) (string, interface{}, string, []interface{})

func (*FabricCADB) SelectCallCount

func (fake *FabricCADB) SelectCallCount() int

func (*FabricCADB) SelectCalls

func (fake *FabricCADB) SelectCalls(stub func(string, interface{}, string, ...interface{}) error)

func (*FabricCADB) SelectReturns

func (fake *FabricCADB) SelectReturns(result1 error)

func (*FabricCADB) SelectReturnsOnCall

func (fake *FabricCADB) SelectReturnsOnCall(i int, result1 error)

func (*FabricCADB) SetDBInitialized

func (fake *FabricCADB) SetDBInitialized(arg1 bool)

func (*FabricCADB) SetDBInitializedArgsForCall

func (fake *FabricCADB) SetDBInitializedArgsForCall(i int) bool

func (*FabricCADB) SetDBInitializedCallCount

func (fake *FabricCADB) SetDBInitializedCallCount() int

func (*FabricCADB) SetDBInitializedCalls

func (fake *FabricCADB) SetDBInitializedCalls(stub func(bool))

func (*FabricCADB) SetMaxOpenConns

func (fake *FabricCADB) SetMaxOpenConns(arg1 int)

func (*FabricCADB) SetMaxOpenConnsArgsForCall

func (fake *FabricCADB) SetMaxOpenConnsArgsForCall(i int) int

func (*FabricCADB) SetMaxOpenConnsCallCount

func (fake *FabricCADB) SetMaxOpenConnsCallCount() int

func (*FabricCADB) SetMaxOpenConnsCalls

func (fake *FabricCADB) SetMaxOpenConnsCalls(stub func(int))

type FabricCATx

type FabricCATx struct {
	CommitStub func(string) error

	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

	RollbackStub func(string) error

	SelectStub func(string, interface{}, string, ...interface{}) error
	// contains filtered or unexported fields
}

func (*FabricCATx) Commit

func (fake *FabricCATx) Commit(arg1 string) error

func (*FabricCATx) CommitArgsForCall

func (fake *FabricCATx) CommitArgsForCall(i int) string

func (*FabricCATx) CommitCallCount

func (fake *FabricCATx) CommitCallCount() int

func (*FabricCATx) CommitCalls

func (fake *FabricCATx) CommitCalls(stub func(string) error)

func (*FabricCATx) CommitReturns

func (fake *FabricCATx) CommitReturns(result1 error)

func (*FabricCATx) CommitReturnsOnCall

func (fake *FabricCATx) CommitReturnsOnCall(i int, result1 error)

func (*FabricCATx) Exec

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

func (*FabricCATx) ExecArgsForCall

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

func (*FabricCATx) ExecCallCount

func (fake *FabricCATx) ExecCallCount() int

func (*FabricCATx) ExecCalls

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

func (*FabricCATx) ExecReturns

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

func (*FabricCATx) ExecReturnsOnCall

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

func (*FabricCATx) Get

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

func (*FabricCATx) GetArgsForCall

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

func (*FabricCATx) GetCallCount

func (fake *FabricCATx) GetCallCount() int

func (*FabricCATx) GetCalls

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

func (*FabricCATx) GetReturns

func (fake *FabricCATx) GetReturns(result1 error)

func (*FabricCATx) GetReturnsOnCall

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

func (*FabricCATx) Invocations

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

func (*FabricCATx) Queryx

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

func (*FabricCATx) QueryxArgsForCall

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

func (*FabricCATx) QueryxCallCount

func (fake *FabricCATx) QueryxCallCount() int

func (*FabricCATx) QueryxCalls

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

func (*FabricCATx) QueryxReturns

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

func (*FabricCATx) QueryxReturnsOnCall

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

func (*FabricCATx) Rebind

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

func (*FabricCATx) RebindArgsForCall

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

func (*FabricCATx) RebindCallCount

func (fake *FabricCATx) RebindCallCount() int

func (*FabricCATx) RebindCalls

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

func (*FabricCATx) RebindReturns

func (fake *FabricCATx) RebindReturns(result1 string)

func (*FabricCATx) RebindReturnsOnCall

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

func (*FabricCATx) Rollback

func (fake *FabricCATx) Rollback(arg1 string) error

func (*FabricCATx) RollbackArgsForCall

func (fake *FabricCATx) RollbackArgsForCall(i int) string

func (*FabricCATx) RollbackCallCount

func (fake *FabricCATx) RollbackCallCount() int

func (*FabricCATx) RollbackCalls

func (fake *FabricCATx) RollbackCalls(stub func(string) error)

func (*FabricCATx) RollbackReturns

func (fake *FabricCATx) RollbackReturns(result1 error)

func (*FabricCATx) RollbackReturnsOnCall

func (fake *FabricCATx) RollbackReturnsOnCall(i int, result1 error)

func (*FabricCATx) Select

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

func (*FabricCATx) SelectArgsForCall

func (fake *FabricCATx) SelectArgsForCall(i int) (string, interface{}, string, []interface{})

func (*FabricCATx) SelectCallCount

func (fake *FabricCATx) SelectCallCount() int

func (*FabricCATx) SelectCalls

func (fake *FabricCATx) SelectCalls(stub func(string, interface{}, string, ...interface{}) error)

func (*FabricCATx) SelectReturns

func (fake *FabricCATx) SelectReturns(result1 error)

func (*FabricCATx) SelectReturnsOnCall

func (fake *FabricCATx) SelectReturnsOnCall(i int, result1 error)

type Migrator

type Migrator struct {
	CommitStub func() error

	MigrateAffiliationsTableStub func() error

	MigrateCertificatesTableStub func() error

	MigrateCredentialsTableStub func() error

	MigrateNoncesTableStub func() error

	MigrateRAInfoTableStub func() error

	MigrateUsersTableStub func() error

	RollbackStub func() error
	// contains filtered or unexported fields
}

func (*Migrator) Commit

func (fake *Migrator) Commit() error

func (*Migrator) CommitCallCount

func (fake *Migrator) CommitCallCount() int

func (*Migrator) CommitCalls

func (fake *Migrator) CommitCalls(stub func() error)

func (*Migrator) CommitReturns

func (fake *Migrator) CommitReturns(result1 error)

func (*Migrator) CommitReturnsOnCall

func (fake *Migrator) CommitReturnsOnCall(i int, result1 error)

func (*Migrator) Invocations

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

func (*Migrator) MigrateAffiliationsTable

func (fake *Migrator) MigrateAffiliationsTable() error

func (*Migrator) MigrateAffiliationsTableCallCount

func (fake *Migrator) MigrateAffiliationsTableCallCount() int

func (*Migrator) MigrateAffiliationsTableCalls

func (fake *Migrator) MigrateAffiliationsTableCalls(stub func() error)

func (*Migrator) MigrateAffiliationsTableReturns

func (fake *Migrator) MigrateAffiliationsTableReturns(result1 error)

func (*Migrator) MigrateAffiliationsTableReturnsOnCall

func (fake *Migrator) MigrateAffiliationsTableReturnsOnCall(i int, result1 error)

func (*Migrator) MigrateCertificatesTable

func (fake *Migrator) MigrateCertificatesTable() error

func (*Migrator) MigrateCertificatesTableCallCount

func (fake *Migrator) MigrateCertificatesTableCallCount() int

func (*Migrator) MigrateCertificatesTableCalls

func (fake *Migrator) MigrateCertificatesTableCalls(stub func() error)

func (*Migrator) MigrateCertificatesTableReturns

func (fake *Migrator) MigrateCertificatesTableReturns(result1 error)

func (*Migrator) MigrateCertificatesTableReturnsOnCall

func (fake *Migrator) MigrateCertificatesTableReturnsOnCall(i int, result1 error)

func (*Migrator) MigrateCredentialsTable

func (fake *Migrator) MigrateCredentialsTable() error

func (*Migrator) MigrateCredentialsTableCallCount

func (fake *Migrator) MigrateCredentialsTableCallCount() int

func (*Migrator) MigrateCredentialsTableCalls

func (fake *Migrator) MigrateCredentialsTableCalls(stub func() error)

func (*Migrator) MigrateCredentialsTableReturns

func (fake *Migrator) MigrateCredentialsTableReturns(result1 error)

func (*Migrator) MigrateCredentialsTableReturnsOnCall

func (fake *Migrator) MigrateCredentialsTableReturnsOnCall(i int, result1 error)

func (*Migrator) MigrateNoncesTable

func (fake *Migrator) MigrateNoncesTable() error

func (*Migrator) MigrateNoncesTableCallCount

func (fake *Migrator) MigrateNoncesTableCallCount() int

func (*Migrator) MigrateNoncesTableCalls

func (fake *Migrator) MigrateNoncesTableCalls(stub func() error)

func (*Migrator) MigrateNoncesTableReturns

func (fake *Migrator) MigrateNoncesTableReturns(result1 error)

func (*Migrator) MigrateNoncesTableReturnsOnCall

func (fake *Migrator) MigrateNoncesTableReturnsOnCall(i int, result1 error)

func (*Migrator) MigrateRAInfoTable

func (fake *Migrator) MigrateRAInfoTable() error

func (*Migrator) MigrateRAInfoTableCallCount

func (fake *Migrator) MigrateRAInfoTableCallCount() int

func (*Migrator) MigrateRAInfoTableCalls

func (fake *Migrator) MigrateRAInfoTableCalls(stub func() error)

func (*Migrator) MigrateRAInfoTableReturns

func (fake *Migrator) MigrateRAInfoTableReturns(result1 error)

func (*Migrator) MigrateRAInfoTableReturnsOnCall

func (fake *Migrator) MigrateRAInfoTableReturnsOnCall(i int, result1 error)

func (*Migrator) MigrateUsersTable

func (fake *Migrator) MigrateUsersTable() error

func (*Migrator) MigrateUsersTableCallCount

func (fake *Migrator) MigrateUsersTableCallCount() int

func (*Migrator) MigrateUsersTableCalls

func (fake *Migrator) MigrateUsersTableCalls(stub func() error)

func (*Migrator) MigrateUsersTableReturns

func (fake *Migrator) MigrateUsersTableReturns(result1 error)

func (*Migrator) MigrateUsersTableReturnsOnCall

func (fake *Migrator) MigrateUsersTableReturnsOnCall(i int, result1 error)

func (*Migrator) Rollback

func (fake *Migrator) Rollback() error

func (*Migrator) RollbackCallCount

func (fake *Migrator) RollbackCallCount() int

func (*Migrator) RollbackCalls

func (fake *Migrator) RollbackCalls(stub func() error)

func (*Migrator) RollbackReturns

func (fake *Migrator) RollbackReturns(result1 error)

func (*Migrator) RollbackReturnsOnCall

func (fake *Migrator) RollbackReturnsOnCall(i int, result1 error)

type Result

type Result struct {
	mock.Mock
}

Result is an autogenerated mock type for the Result type

func (*Result) LastInsertId

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

LastInsertId provides a mock function with given fields:

func (*Result) RowsAffected

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

RowsAffected provides a mock function with given fields:

type SqlxDB

type SqlxDB struct {
	CloseStub func() error

	DriverNameStub func() string

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

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

	MustBeginStub func() *sqlx.Tx

	NamedExecStub func(string, interface{}) (sql.Result, error)

	PingContextStub func(context.Context) error

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

	RebindStub func(string) string

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

	SetMaxOpenConnsStub func(int)
	// contains filtered or unexported fields
}

func (*SqlxDB) Close

func (fake *SqlxDB) Close() error

func (*SqlxDB) CloseCallCount

func (fake *SqlxDB) CloseCallCount() int

func (*SqlxDB) CloseCalls

func (fake *SqlxDB) CloseCalls(stub func() error)

func (*SqlxDB) CloseReturns

func (fake *SqlxDB) CloseReturns(result1 error)

func (*SqlxDB) CloseReturnsOnCall

func (fake *SqlxDB) CloseReturnsOnCall(i int, result1 error)

func (*SqlxDB) DriverName

func (fake *SqlxDB) DriverName() string

func (*SqlxDB) DriverNameCallCount

func (fake *SqlxDB) DriverNameCallCount() int

func (*SqlxDB) DriverNameCalls

func (fake *SqlxDB) DriverNameCalls(stub func() string)

func (*SqlxDB) DriverNameReturns

func (fake *SqlxDB) DriverNameReturns(result1 string)

func (*SqlxDB) DriverNameReturnsOnCall

func (fake *SqlxDB) DriverNameReturnsOnCall(i int, result1 string)

func (*SqlxDB) Exec

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

func (*SqlxDB) ExecArgsForCall

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

func (*SqlxDB) ExecCallCount

func (fake *SqlxDB) ExecCallCount() int

func (*SqlxDB) ExecCalls

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

func (*SqlxDB) ExecReturns

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

func (*SqlxDB) ExecReturnsOnCall

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

func (*SqlxDB) Get

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

func (*SqlxDB) GetArgsForCall

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

func (*SqlxDB) GetCallCount

func (fake *SqlxDB) GetCallCount() int

func (*SqlxDB) GetCalls

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

func (*SqlxDB) GetReturns

func (fake *SqlxDB) GetReturns(result1 error)

func (*SqlxDB) GetReturnsOnCall

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

func (*SqlxDB) Invocations

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

func (*SqlxDB) MustBegin

func (fake *SqlxDB) MustBegin() *sqlx.Tx

func (*SqlxDB) MustBeginCallCount

func (fake *SqlxDB) MustBeginCallCount() int

func (*SqlxDB) MustBeginCalls

func (fake *SqlxDB) MustBeginCalls(stub func() *sqlx.Tx)

func (*SqlxDB) MustBeginReturns

func (fake *SqlxDB) MustBeginReturns(result1 *sqlx.Tx)

func (*SqlxDB) MustBeginReturnsOnCall

func (fake *SqlxDB) MustBeginReturnsOnCall(i int, result1 *sqlx.Tx)

func (*SqlxDB) NamedExec

func (fake *SqlxDB) NamedExec(arg1 string, arg2 interface{}) (sql.Result, error)

func (*SqlxDB) NamedExecArgsForCall

func (fake *SqlxDB) NamedExecArgsForCall(i int) (string, interface{})

func (*SqlxDB) NamedExecCallCount

func (fake *SqlxDB) NamedExecCallCount() int

func (*SqlxDB) NamedExecCalls

func (fake *SqlxDB) NamedExecCalls(stub func(string, interface{}) (sql.Result, error))

func (*SqlxDB) NamedExecReturns

func (fake *SqlxDB) NamedExecReturns(result1 sql.Result, result2 error)

func (*SqlxDB) NamedExecReturnsOnCall

func (fake *SqlxDB) NamedExecReturnsOnCall(i int, result1 sql.Result, result2 error)

func (*SqlxDB) PingContext

func (fake *SqlxDB) PingContext(arg1 context.Context) error

func (*SqlxDB) PingContextArgsForCall

func (fake *SqlxDB) PingContextArgsForCall(i int) context.Context

func (*SqlxDB) PingContextCallCount

func (fake *SqlxDB) PingContextCallCount() int

func (*SqlxDB) PingContextCalls

func (fake *SqlxDB) PingContextCalls(stub func(context.Context) error)

func (*SqlxDB) PingContextReturns

func (fake *SqlxDB) PingContextReturns(result1 error)

func (*SqlxDB) PingContextReturnsOnCall

func (fake *SqlxDB) PingContextReturnsOnCall(i int, result1 error)

func (*SqlxDB) Queryx

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

func (*SqlxDB) QueryxArgsForCall

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

func (*SqlxDB) QueryxCallCount

func (fake *SqlxDB) QueryxCallCount() int

func (*SqlxDB) QueryxCalls

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

func (*SqlxDB) QueryxReturns

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

func (*SqlxDB) QueryxReturnsOnCall

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

func (*SqlxDB) Rebind

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

func (*SqlxDB) RebindArgsForCall

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

func (*SqlxDB) RebindCallCount

func (fake *SqlxDB) RebindCallCount() int

func (*SqlxDB) RebindCalls

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

func (*SqlxDB) RebindReturns

func (fake *SqlxDB) RebindReturns(result1 string)

func (*SqlxDB) RebindReturnsOnCall

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

func (*SqlxDB) Select

func (fake *SqlxDB) Select(arg1 interface{}, arg2 string, arg3 ...interface{}) error

func (*SqlxDB) SelectArgsForCall

func (fake *SqlxDB) SelectArgsForCall(i int) (interface{}, string, []interface{})

func (*SqlxDB) SelectCallCount

func (fake *SqlxDB) SelectCallCount() int

func (*SqlxDB) SelectCalls

func (fake *SqlxDB) SelectCalls(stub func(interface{}, string, ...interface{}) error)

func (*SqlxDB) SelectReturns

func (fake *SqlxDB) SelectReturns(result1 error)

func (*SqlxDB) SelectReturnsOnCall

func (fake *SqlxDB) SelectReturnsOnCall(i int, result1 error)

func (*SqlxDB) SetMaxOpenConns

func (fake *SqlxDB) SetMaxOpenConns(arg1 int)

func (*SqlxDB) SetMaxOpenConnsArgsForCall

func (fake *SqlxDB) SetMaxOpenConnsArgsForCall(i int) int

func (*SqlxDB) SetMaxOpenConnsCallCount

func (fake *SqlxDB) SetMaxOpenConnsCallCount() int

func (*SqlxDB) SetMaxOpenConnsCalls

func (fake *SqlxDB) SetMaxOpenConnsCalls(stub func(int))

type SqlxTx

type SqlxTx struct {
	CommitStub func() error

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

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

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

	RebindStub func(string) string

	RollbackStub func() error

	SelectStub func(interface{}, string, ...interface{}) error
	// contains filtered or unexported fields
}

func (*SqlxTx) Commit

func (fake *SqlxTx) Commit() error

func (*SqlxTx) CommitCallCount

func (fake *SqlxTx) CommitCallCount() int

func (*SqlxTx) CommitCalls

func (fake *SqlxTx) CommitCalls(stub func() error)

func (*SqlxTx) CommitReturns

func (fake *SqlxTx) CommitReturns(result1 error)

func (*SqlxTx) CommitReturnsOnCall

func (fake *SqlxTx) CommitReturnsOnCall(i int, result1 error)

func (*SqlxTx) Exec

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

func (*SqlxTx) ExecArgsForCall

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

func (*SqlxTx) ExecCallCount

func (fake *SqlxTx) ExecCallCount() int

func (*SqlxTx) ExecCalls

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

func (*SqlxTx) ExecReturns

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

func (*SqlxTx) ExecReturnsOnCall

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

func (*SqlxTx) Get

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

func (*SqlxTx) GetArgsForCall

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

func (*SqlxTx) GetCallCount

func (fake *SqlxTx) GetCallCount() int

func (*SqlxTx) GetCalls

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

func (*SqlxTx) GetReturns

func (fake *SqlxTx) GetReturns(result1 error)

func (*SqlxTx) GetReturnsOnCall

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

func (*SqlxTx) Invocations

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

func (*SqlxTx) Queryx

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

func (*SqlxTx) QueryxArgsForCall

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

func (*SqlxTx) QueryxCallCount

func (fake *SqlxTx) QueryxCallCount() int

func (*SqlxTx) QueryxCalls

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

func (*SqlxTx) QueryxReturns

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

func (*SqlxTx) QueryxReturnsOnCall

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

func (*SqlxTx) Rebind

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

func (*SqlxTx) RebindArgsForCall

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

func (*SqlxTx) RebindCallCount

func (fake *SqlxTx) RebindCallCount() int

func (*SqlxTx) RebindCalls

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

func (*SqlxTx) RebindReturns

func (fake *SqlxTx) RebindReturns(result1 string)

func (*SqlxTx) RebindReturnsOnCall

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

func (*SqlxTx) Rollback

func (fake *SqlxTx) Rollback() error

func (*SqlxTx) RollbackCallCount

func (fake *SqlxTx) RollbackCallCount() int

func (*SqlxTx) RollbackCalls

func (fake *SqlxTx) RollbackCalls(stub func() error)

func (*SqlxTx) RollbackReturns

func (fake *SqlxTx) RollbackReturns(result1 error)

func (*SqlxTx) RollbackReturnsOnCall

func (fake *SqlxTx) RollbackReturnsOnCall(i int, result1 error)

func (*SqlxTx) Select

func (fake *SqlxTx) Select(arg1 interface{}, arg2 string, arg3 ...interface{}) error

func (*SqlxTx) SelectArgsForCall

func (fake *SqlxTx) SelectArgsForCall(i int) (interface{}, string, []interface{})

func (*SqlxTx) SelectCallCount

func (fake *SqlxTx) SelectCallCount() int

func (*SqlxTx) SelectCalls

func (fake *SqlxTx) SelectCalls(stub func(interface{}, string, ...interface{}) error)

func (*SqlxTx) SelectReturns

func (fake *SqlxTx) SelectReturns(result1 error)

func (*SqlxTx) SelectReturnsOnCall

func (fake *SqlxTx) SelectReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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