mocks

package
v1.4.6 Latest Latest
Warning

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

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

Documentation

Overview

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)

Jump to

Keyboard shortcuts

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