dbfakes

package
v0.0.0-...-de86ced Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2017 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.

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 FakeConn

type FakeConn struct {
	BeginStub func() (db.Tx, error)

	CloseStub func() error

	DriverStub func() driver.Driver

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

	PingStub func() error

	PrepareStub func(query string) (*sql.Stmt, error)

	QueryStub func(query string, args ...interface{}) (*sql.Rows, error)

	QueryRowStub func(query string, args ...interface{}) *sql.Row

	SetMaxIdleConnsStub func(n int)

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

func (*FakeConn) Begin

func (fake *FakeConn) Begin() (db.Tx, error)

func (*FakeConn) BeginCallCount

func (fake *FakeConn) BeginCallCount() int

func (*FakeConn) BeginReturns

func (fake *FakeConn) BeginReturns(result1 db.Tx, result2 error)

func (*FakeConn) BeginReturnsOnCall

func (fake *FakeConn) BeginReturnsOnCall(i int, result1 db.Tx, result2 error)

func (*FakeConn) Close

func (fake *FakeConn) Close() error

func (*FakeConn) CloseCallCount

func (fake *FakeConn) CloseCallCount() int

func (*FakeConn) CloseReturns

func (fake *FakeConn) CloseReturns(result1 error)

func (*FakeConn) CloseReturnsOnCall

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

func (*FakeConn) Driver

func (fake *FakeConn) Driver() driver.Driver

func (*FakeConn) DriverCallCount

func (fake *FakeConn) DriverCallCount() int

func (*FakeConn) DriverReturns

func (fake *FakeConn) DriverReturns(result1 driver.Driver)

func (*FakeConn) DriverReturnsOnCall

func (fake *FakeConn) DriverReturnsOnCall(i int, result1 driver.Driver)

func (*FakeConn) Exec

func (fake *FakeConn) Exec(query string, args ...interface{}) (sql.Result, error)

func (*FakeConn) ExecArgsForCall

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

func (*FakeConn) ExecCallCount

func (fake *FakeConn) ExecCallCount() int

func (*FakeConn) ExecReturns

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

func (*FakeConn) ExecReturnsOnCall

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

func (*FakeConn) Invocations

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

func (*FakeConn) Ping

func (fake *FakeConn) Ping() error

func (*FakeConn) PingCallCount

func (fake *FakeConn) PingCallCount() int

func (*FakeConn) PingReturns

func (fake *FakeConn) PingReturns(result1 error)

func (*FakeConn) PingReturnsOnCall

func (fake *FakeConn) PingReturnsOnCall(i int, result1 error)

func (*FakeConn) Prepare

func (fake *FakeConn) Prepare(query string) (*sql.Stmt, error)

func (*FakeConn) PrepareArgsForCall

func (fake *FakeConn) PrepareArgsForCall(i int) string

func (*FakeConn) PrepareCallCount

func (fake *FakeConn) PrepareCallCount() int

func (*FakeConn) PrepareReturns

func (fake *FakeConn) PrepareReturns(result1 *sql.Stmt, result2 error)

func (*FakeConn) PrepareReturnsOnCall

func (fake *FakeConn) PrepareReturnsOnCall(i int, result1 *sql.Stmt, result2 error)

func (*FakeConn) Query

func (fake *FakeConn) Query(query string, args ...interface{}) (*sql.Rows, error)

func (*FakeConn) QueryArgsForCall

func (fake *FakeConn) QueryArgsForCall(i int) (string, []interface{})

func (*FakeConn) QueryCallCount

func (fake *FakeConn) QueryCallCount() int

func (*FakeConn) QueryReturns

func (fake *FakeConn) QueryReturns(result1 *sql.Rows, result2 error)

func (*FakeConn) QueryReturnsOnCall

func (fake *FakeConn) QueryReturnsOnCall(i int, result1 *sql.Rows, result2 error)

func (*FakeConn) QueryRow

func (fake *FakeConn) QueryRow(query string, args ...interface{}) *sql.Row

func (*FakeConn) QueryRowArgsForCall

func (fake *FakeConn) QueryRowArgsForCall(i int) (string, []interface{})

func (*FakeConn) QueryRowCallCount

func (fake *FakeConn) QueryRowCallCount() int

func (*FakeConn) QueryRowReturns

func (fake *FakeConn) QueryRowReturns(result1 *sql.Row)

func (*FakeConn) QueryRowReturnsOnCall

func (fake *FakeConn) QueryRowReturnsOnCall(i int, result1 *sql.Row)

func (*FakeConn) SetMaxIdleConns

func (fake *FakeConn) SetMaxIdleConns(n int)

func (*FakeConn) SetMaxIdleConnsArgsForCall

func (fake *FakeConn) SetMaxIdleConnsArgsForCall(i int) int

func (*FakeConn) SetMaxIdleConnsCallCount

func (fake *FakeConn) SetMaxIdleConnsCallCount() int

func (*FakeConn) SetMaxOpenConns

func (fake *FakeConn) SetMaxOpenConns(n int)

func (*FakeConn) SetMaxOpenConnsArgsForCall

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

func (*FakeConn) SetMaxOpenConnsCallCount

func (fake *FakeConn) SetMaxOpenConnsCallCount() int

type FakeEventSource

type FakeEventSource struct {
	NextStub func() (event.Envelope, error)

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

func (*FakeEventSource) Close

func (fake *FakeEventSource) Close() error

func (*FakeEventSource) CloseCallCount

func (fake *FakeEventSource) CloseCallCount() int

func (*FakeEventSource) CloseReturns

func (fake *FakeEventSource) CloseReturns(result1 error)

func (*FakeEventSource) CloseReturnsOnCall

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

func (*FakeEventSource) Invocations

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

func (*FakeEventSource) Next

func (fake *FakeEventSource) Next() (event.Envelope, error)

func (*FakeEventSource) NextCallCount

func (fake *FakeEventSource) NextCallCount() int

func (*FakeEventSource) NextReturns

func (fake *FakeEventSource) NextReturns(result1 event.Envelope, result2 error)

func (*FakeEventSource) NextReturnsOnCall

func (fake *FakeEventSource) NextReturnsOnCall(i int, result1 event.Envelope, result2 error)

type FakeNotifier

type FakeNotifier struct {
	NotifyStub func() <-chan struct{}

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

func (*FakeNotifier) Close

func (fake *FakeNotifier) Close() error

func (*FakeNotifier) CloseCallCount

func (fake *FakeNotifier) CloseCallCount() int

func (*FakeNotifier) CloseReturns

func (fake *FakeNotifier) CloseReturns(result1 error)

func (*FakeNotifier) CloseReturnsOnCall

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

func (*FakeNotifier) Invocations

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

func (*FakeNotifier) Notify

func (fake *FakeNotifier) Notify() <-chan struct{}

func (*FakeNotifier) NotifyCallCount

func (fake *FakeNotifier) NotifyCallCount() int

func (*FakeNotifier) NotifyReturns

func (fake *FakeNotifier) NotifyReturns(result1 <-chan struct{})

func (*FakeNotifier) NotifyReturnsOnCall

func (fake *FakeNotifier) NotifyReturnsOnCall(i int, result1 <-chan struct{})

type FakeTeamDB

type FakeTeamDB struct {
	GetTeamStub func() (db.SavedTeam, bool, error)
	// contains filtered or unexported fields
}

func (*FakeTeamDB) GetTeam

func (fake *FakeTeamDB) GetTeam() (db.SavedTeam, bool, error)

func (*FakeTeamDB) GetTeamCallCount

func (fake *FakeTeamDB) GetTeamCallCount() int

func (*FakeTeamDB) GetTeamReturns

func (fake *FakeTeamDB) GetTeamReturns(result1 db.SavedTeam, result2 bool, result3 error)

func (*FakeTeamDB) GetTeamReturnsOnCall

func (fake *FakeTeamDB) GetTeamReturnsOnCall(i int, result1 db.SavedTeam, result2 bool, result3 error)

func (*FakeTeamDB) Invocations

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

type FakeTeamDBFactory

type FakeTeamDBFactory struct {
	GetTeamDBStub func(string) db.TeamDB
	// contains filtered or unexported fields
}

func (*FakeTeamDBFactory) GetTeamDB

func (fake *FakeTeamDBFactory) GetTeamDB(arg1 string) db.TeamDB

func (*FakeTeamDBFactory) GetTeamDBArgsForCall

func (fake *FakeTeamDBFactory) GetTeamDBArgsForCall(i int) string

func (*FakeTeamDBFactory) GetTeamDBCallCount

func (fake *FakeTeamDBFactory) GetTeamDBCallCount() int

func (*FakeTeamDBFactory) GetTeamDBReturns

func (fake *FakeTeamDBFactory) GetTeamDBReturns(result1 db.TeamDB)

func (*FakeTeamDBFactory) GetTeamDBReturnsOnCall

func (fake *FakeTeamDBFactory) GetTeamDBReturnsOnCall(i int, result1 db.TeamDB)

func (*FakeTeamDBFactory) Invocations

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

type FakeTx

type FakeTx struct {
	CommitStub func() error

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

	PrepareStub func(query string) (*sql.Stmt, error)

	QueryStub func(query string, args ...interface{}) (*sql.Rows, error)

	QueryRowStub func(query string, args ...interface{}) *sql.Row

	RollbackStub func() error

	StmtStub func(stmt *sql.Stmt) *sql.Stmt
	// contains filtered or unexported fields
}

func (*FakeTx) Commit

func (fake *FakeTx) Commit() error

func (*FakeTx) CommitCallCount

func (fake *FakeTx) CommitCallCount() int

func (*FakeTx) CommitReturns

func (fake *FakeTx) CommitReturns(result1 error)

func (*FakeTx) CommitReturnsOnCall

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

func (*FakeTx) Exec

func (fake *FakeTx) Exec(query string, args ...interface{}) (sql.Result, error)

func (*FakeTx) ExecArgsForCall

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

func (*FakeTx) ExecCallCount

func (fake *FakeTx) ExecCallCount() int

func (*FakeTx) ExecReturns

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

func (*FakeTx) ExecReturnsOnCall

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

func (*FakeTx) Invocations

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

func (*FakeTx) Prepare

func (fake *FakeTx) Prepare(query string) (*sql.Stmt, error)

func (*FakeTx) PrepareArgsForCall

func (fake *FakeTx) PrepareArgsForCall(i int) string

func (*FakeTx) PrepareCallCount

func (fake *FakeTx) PrepareCallCount() int

func (*FakeTx) PrepareReturns

func (fake *FakeTx) PrepareReturns(result1 *sql.Stmt, result2 error)

func (*FakeTx) PrepareReturnsOnCall

func (fake *FakeTx) PrepareReturnsOnCall(i int, result1 *sql.Stmt, result2 error)

func (*FakeTx) Query

func (fake *FakeTx) Query(query string, args ...interface{}) (*sql.Rows, error)

func (*FakeTx) QueryArgsForCall

func (fake *FakeTx) QueryArgsForCall(i int) (string, []interface{})

func (*FakeTx) QueryCallCount

func (fake *FakeTx) QueryCallCount() int

func (*FakeTx) QueryReturns

func (fake *FakeTx) QueryReturns(result1 *sql.Rows, result2 error)

func (*FakeTx) QueryReturnsOnCall

func (fake *FakeTx) QueryReturnsOnCall(i int, result1 *sql.Rows, result2 error)

func (*FakeTx) QueryRow

func (fake *FakeTx) QueryRow(query string, args ...interface{}) *sql.Row

func (*FakeTx) QueryRowArgsForCall

func (fake *FakeTx) QueryRowArgsForCall(i int) (string, []interface{})

func (*FakeTx) QueryRowCallCount

func (fake *FakeTx) QueryRowCallCount() int

func (*FakeTx) QueryRowReturns

func (fake *FakeTx) QueryRowReturns(result1 *sql.Row)

func (*FakeTx) QueryRowReturnsOnCall

func (fake *FakeTx) QueryRowReturnsOnCall(i int, result1 *sql.Row)

func (*FakeTx) Rollback

func (fake *FakeTx) Rollback() error

func (*FakeTx) RollbackCallCount

func (fake *FakeTx) RollbackCallCount() int

func (*FakeTx) RollbackReturns

func (fake *FakeTx) RollbackReturns(result1 error)

func (*FakeTx) RollbackReturnsOnCall

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

func (*FakeTx) Stmt

func (fake *FakeTx) Stmt(stmt *sql.Stmt) *sql.Stmt

func (*FakeTx) StmtArgsForCall

func (fake *FakeTx) StmtArgsForCall(i int) *sql.Stmt

func (*FakeTx) StmtCallCount

func (fake *FakeTx) StmtCallCount() int

func (*FakeTx) StmtReturns

func (fake *FakeTx) StmtReturns(result1 *sql.Stmt)

func (*FakeTx) StmtReturnsOnCall

func (fake *FakeTx) StmtReturnsOnCall(i int, result1 *sql.Stmt)

Jump to

Keyboard shortcuts

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