helpersfakes

package
v0.0.0-...-096d0e1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeQueryableDB

type FakeQueryableDB struct {
	BeginTxStub func(context.Context, *sql.TxOptions) (helpers.Tx, error)

	ExecContextStub func(context.Context, string, ...interface{}) (sql.Result, error)

	OpenConnectionsStub func() int

	PrepareContextStub func(context.Context, string) (*sql.Stmt, error)

	QueryContextStub func(context.Context, string, ...interface{}) (*sql.Rows, error)

	QueryRowContextStub func(context.Context, string, ...interface{}) helpers.RowScanner

	WaitCountStub func() int64

	WaitDurationStub func() time.Duration
	// contains filtered or unexported fields
}

func (*FakeQueryableDB) BeginTx

func (fake *FakeQueryableDB) BeginTx(arg1 context.Context, arg2 *sql.TxOptions) (helpers.Tx, error)

func (*FakeQueryableDB) BeginTxArgsForCall

func (fake *FakeQueryableDB) BeginTxArgsForCall(i int) (context.Context, *sql.TxOptions)

func (*FakeQueryableDB) BeginTxCallCount

func (fake *FakeQueryableDB) BeginTxCallCount() int

func (*FakeQueryableDB) BeginTxCalls

func (fake *FakeQueryableDB) BeginTxCalls(stub func(context.Context, *sql.TxOptions) (helpers.Tx, error))

func (*FakeQueryableDB) BeginTxReturns

func (fake *FakeQueryableDB) BeginTxReturns(result1 helpers.Tx, result2 error)

func (*FakeQueryableDB) BeginTxReturnsOnCall

func (fake *FakeQueryableDB) BeginTxReturnsOnCall(i int, result1 helpers.Tx, result2 error)

func (*FakeQueryableDB) ExecContext

func (fake *FakeQueryableDB) ExecContext(arg1 context.Context, arg2 string, arg3 ...interface{}) (sql.Result, error)

func (*FakeQueryableDB) ExecContextArgsForCall

func (fake *FakeQueryableDB) ExecContextArgsForCall(i int) (context.Context, string, []interface{})

func (*FakeQueryableDB) ExecContextCallCount

func (fake *FakeQueryableDB) ExecContextCallCount() int

func (*FakeQueryableDB) ExecContextCalls

func (fake *FakeQueryableDB) ExecContextCalls(stub func(context.Context, string, ...interface{}) (sql.Result, error))

func (*FakeQueryableDB) ExecContextReturns

func (fake *FakeQueryableDB) ExecContextReturns(result1 sql.Result, result2 error)

func (*FakeQueryableDB) ExecContextReturnsOnCall

func (fake *FakeQueryableDB) ExecContextReturnsOnCall(i int, result1 sql.Result, result2 error)

func (*FakeQueryableDB) Invocations

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

func (*FakeQueryableDB) OpenConnections

func (fake *FakeQueryableDB) OpenConnections() int

func (*FakeQueryableDB) OpenConnectionsCallCount

func (fake *FakeQueryableDB) OpenConnectionsCallCount() int

func (*FakeQueryableDB) OpenConnectionsCalls

func (fake *FakeQueryableDB) OpenConnectionsCalls(stub func() int)

func (*FakeQueryableDB) OpenConnectionsReturns

func (fake *FakeQueryableDB) OpenConnectionsReturns(result1 int)

func (*FakeQueryableDB) OpenConnectionsReturnsOnCall

func (fake *FakeQueryableDB) OpenConnectionsReturnsOnCall(i int, result1 int)

func (*FakeQueryableDB) PrepareContext

func (fake *FakeQueryableDB) PrepareContext(arg1 context.Context, arg2 string) (*sql.Stmt, error)

func (*FakeQueryableDB) PrepareContextArgsForCall

func (fake *FakeQueryableDB) PrepareContextArgsForCall(i int) (context.Context, string)

func (*FakeQueryableDB) PrepareContextCallCount

func (fake *FakeQueryableDB) PrepareContextCallCount() int

func (*FakeQueryableDB) PrepareContextCalls

func (fake *FakeQueryableDB) PrepareContextCalls(stub func(context.Context, string) (*sql.Stmt, error))

func (*FakeQueryableDB) PrepareContextReturns

func (fake *FakeQueryableDB) PrepareContextReturns(result1 *sql.Stmt, result2 error)

func (*FakeQueryableDB) PrepareContextReturnsOnCall

func (fake *FakeQueryableDB) PrepareContextReturnsOnCall(i int, result1 *sql.Stmt, result2 error)

func (*FakeQueryableDB) QueryContext

func (fake *FakeQueryableDB) QueryContext(arg1 context.Context, arg2 string, arg3 ...interface{}) (*sql.Rows, error)

func (*FakeQueryableDB) QueryContextArgsForCall

func (fake *FakeQueryableDB) QueryContextArgsForCall(i int) (context.Context, string, []interface{})

func (*FakeQueryableDB) QueryContextCallCount

func (fake *FakeQueryableDB) QueryContextCallCount() int

func (*FakeQueryableDB) QueryContextCalls

func (fake *FakeQueryableDB) QueryContextCalls(stub func(context.Context, string, ...interface{}) (*sql.Rows, error))

func (*FakeQueryableDB) QueryContextReturns

func (fake *FakeQueryableDB) QueryContextReturns(result1 *sql.Rows, result2 error)

func (*FakeQueryableDB) QueryContextReturnsOnCall

func (fake *FakeQueryableDB) QueryContextReturnsOnCall(i int, result1 *sql.Rows, result2 error)

func (*FakeQueryableDB) QueryRowContext

func (fake *FakeQueryableDB) QueryRowContext(arg1 context.Context, arg2 string, arg3 ...interface{}) helpers.RowScanner

func (*FakeQueryableDB) QueryRowContextArgsForCall

func (fake *FakeQueryableDB) QueryRowContextArgsForCall(i int) (context.Context, string, []interface{})

func (*FakeQueryableDB) QueryRowContextCallCount

func (fake *FakeQueryableDB) QueryRowContextCallCount() int

func (*FakeQueryableDB) QueryRowContextCalls

func (fake *FakeQueryableDB) QueryRowContextCalls(stub func(context.Context, string, ...interface{}) helpers.RowScanner)

func (*FakeQueryableDB) QueryRowContextReturns

func (fake *FakeQueryableDB) QueryRowContextReturns(result1 helpers.RowScanner)

func (*FakeQueryableDB) QueryRowContextReturnsOnCall

func (fake *FakeQueryableDB) QueryRowContextReturnsOnCall(i int, result1 helpers.RowScanner)

func (*FakeQueryableDB) WaitCount

func (fake *FakeQueryableDB) WaitCount() int64

func (*FakeQueryableDB) WaitCountCallCount

func (fake *FakeQueryableDB) WaitCountCallCount() int

func (*FakeQueryableDB) WaitCountCalls

func (fake *FakeQueryableDB) WaitCountCalls(stub func() int64)

func (*FakeQueryableDB) WaitCountReturns

func (fake *FakeQueryableDB) WaitCountReturns(result1 int64)

func (*FakeQueryableDB) WaitCountReturnsOnCall

func (fake *FakeQueryableDB) WaitCountReturnsOnCall(i int, result1 int64)

func (*FakeQueryableDB) WaitDuration

func (fake *FakeQueryableDB) WaitDuration() time.Duration

func (*FakeQueryableDB) WaitDurationCallCount

func (fake *FakeQueryableDB) WaitDurationCallCount() int

func (*FakeQueryableDB) WaitDurationCalls

func (fake *FakeQueryableDB) WaitDurationCalls(stub func() time.Duration)

func (*FakeQueryableDB) WaitDurationReturns

func (fake *FakeQueryableDB) WaitDurationReturns(result1 time.Duration)

func (*FakeQueryableDB) WaitDurationReturnsOnCall

func (fake *FakeQueryableDB) WaitDurationReturnsOnCall(i int, result1 time.Duration)

type FakeRowScanner

type FakeRowScanner struct {
	ScanStub func(...interface{}) error
	// contains filtered or unexported fields
}

func (*FakeRowScanner) Invocations

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

func (*FakeRowScanner) Scan

func (fake *FakeRowScanner) Scan(arg1 ...interface{}) error

func (*FakeRowScanner) ScanArgsForCall

func (fake *FakeRowScanner) ScanArgsForCall(i int) []interface{}

func (*FakeRowScanner) ScanCallCount

func (fake *FakeRowScanner) ScanCallCount() int

func (*FakeRowScanner) ScanCalls

func (fake *FakeRowScanner) ScanCalls(stub func(...interface{}) error)

func (*FakeRowScanner) ScanReturns

func (fake *FakeRowScanner) ScanReturns(result1 error)

func (*FakeRowScanner) ScanReturnsOnCall

func (fake *FakeRowScanner) ScanReturnsOnCall(i int, result1 error)

type FakeTx

type FakeTx struct {
	CommitStub func() error

	ExecContextStub func(context.Context, string, ...interface{}) (sql.Result, error)

	PrepareContextStub func(context.Context, string) (*sql.Stmt, error)

	QueryContextStub func(context.Context, string, ...interface{}) (*sql.Rows, error)

	QueryRowContextStub func(context.Context, string, ...interface{}) helpers.RowScanner

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

func (*FakeTx) Commit

func (fake *FakeTx) Commit() error

func (*FakeTx) CommitCallCount

func (fake *FakeTx) CommitCallCount() int

func (*FakeTx) CommitCalls

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

func (*FakeTx) CommitReturns

func (fake *FakeTx) CommitReturns(result1 error)

func (*FakeTx) CommitReturnsOnCall

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

func (*FakeTx) ExecContext

func (fake *FakeTx) ExecContext(arg1 context.Context, arg2 string, arg3 ...interface{}) (sql.Result, error)

func (*FakeTx) ExecContextArgsForCall

func (fake *FakeTx) ExecContextArgsForCall(i int) (context.Context, string, []interface{})

func (*FakeTx) ExecContextCallCount

func (fake *FakeTx) ExecContextCallCount() int

func (*FakeTx) ExecContextCalls

func (fake *FakeTx) ExecContextCalls(stub func(context.Context, string, ...interface{}) (sql.Result, error))

func (*FakeTx) ExecContextReturns

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

func (*FakeTx) ExecContextReturnsOnCall

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

func (*FakeTx) Invocations

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

func (*FakeTx) PrepareContext

func (fake *FakeTx) PrepareContext(arg1 context.Context, arg2 string) (*sql.Stmt, error)

func (*FakeTx) PrepareContextArgsForCall

func (fake *FakeTx) PrepareContextArgsForCall(i int) (context.Context, string)

func (*FakeTx) PrepareContextCallCount

func (fake *FakeTx) PrepareContextCallCount() int

func (*FakeTx) PrepareContextCalls

func (fake *FakeTx) PrepareContextCalls(stub func(context.Context, string) (*sql.Stmt, error))

func (*FakeTx) PrepareContextReturns

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

func (*FakeTx) PrepareContextReturnsOnCall

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

func (*FakeTx) QueryContext

func (fake *FakeTx) QueryContext(arg1 context.Context, arg2 string, arg3 ...interface{}) (*sql.Rows, error)

func (*FakeTx) QueryContextArgsForCall

func (fake *FakeTx) QueryContextArgsForCall(i int) (context.Context, string, []interface{})

func (*FakeTx) QueryContextCallCount

func (fake *FakeTx) QueryContextCallCount() int

func (*FakeTx) QueryContextCalls

func (fake *FakeTx) QueryContextCalls(stub func(context.Context, string, ...interface{}) (*sql.Rows, error))

func (*FakeTx) QueryContextReturns

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

func (*FakeTx) QueryContextReturnsOnCall

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

func (*FakeTx) QueryRowContext

func (fake *FakeTx) QueryRowContext(arg1 context.Context, arg2 string, arg3 ...interface{}) helpers.RowScanner

func (*FakeTx) QueryRowContextArgsForCall

func (fake *FakeTx) QueryRowContextArgsForCall(i int) (context.Context, string, []interface{})

func (*FakeTx) QueryRowContextCallCount

func (fake *FakeTx) QueryRowContextCallCount() int

func (*FakeTx) QueryRowContextCalls

func (fake *FakeTx) QueryRowContextCalls(stub func(context.Context, string, ...interface{}) helpers.RowScanner)

func (*FakeTx) QueryRowContextReturns

func (fake *FakeTx) QueryRowContextReturns(result1 helpers.RowScanner)

func (*FakeTx) QueryRowContextReturnsOnCall

func (fake *FakeTx) QueryRowContextReturnsOnCall(i int, result1 helpers.RowScanner)

func (*FakeTx) Rollback

func (fake *FakeTx) Rollback() error

func (*FakeTx) RollbackCallCount

func (fake *FakeTx) RollbackCallCount() int

func (*FakeTx) RollbackCalls

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

func (*FakeTx) RollbackReturns

func (fake *FakeTx) RollbackReturns(result1 error)

func (*FakeTx) RollbackReturnsOnCall

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

Jump to

Keyboard shortcuts

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