dbfakes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2020 License: MIT Imports: 4 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 FakeDB

type FakeDB struct {
	NamedExecContextStub func(context.Context, string, interface{}) (sql.Result, error)

	NamedQueryContextStub func(context.Context, string, interface{}) (db.Rows, error)
	// contains filtered or unexported fields
}

func (*FakeDB) Invocations

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

func (*FakeDB) NamedExecContext

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

func (*FakeDB) NamedExecContextArgsForCall

func (fake *FakeDB) NamedExecContextArgsForCall(i int) (context.Context, string, interface{})

func (*FakeDB) NamedExecContextCallCount

func (fake *FakeDB) NamedExecContextCallCount() int

func (*FakeDB) NamedExecContextCalls

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

func (*FakeDB) NamedExecContextReturns

func (fake *FakeDB) NamedExecContextReturns(result1 sql.Result, result2 error)

func (*FakeDB) NamedExecContextReturnsOnCall

func (fake *FakeDB) NamedExecContextReturnsOnCall(i int, result1 sql.Result, result2 error)

func (*FakeDB) NamedQueryContext

func (fake *FakeDB) NamedQueryContext(arg1 context.Context, arg2 string, arg3 interface{}) (db.Rows, error)

func (*FakeDB) NamedQueryContextArgsForCall

func (fake *FakeDB) NamedQueryContextArgsForCall(i int) (context.Context, string, interface{})

func (*FakeDB) NamedQueryContextCallCount

func (fake *FakeDB) NamedQueryContextCallCount() int

func (*FakeDB) NamedQueryContextCalls

func (fake *FakeDB) NamedQueryContextCalls(stub func(context.Context, string, interface{}) (db.Rows, error))

func (*FakeDB) NamedQueryContextReturns

func (fake *FakeDB) NamedQueryContextReturns(result1 db.Rows, result2 error)

func (*FakeDB) NamedQueryContextReturnsOnCall

func (fake *FakeDB) NamedQueryContextReturnsOnCall(i int, result1 db.Rows, result2 error)

type FakeResult

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

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

func (*FakeResult) Invocations

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

func (*FakeResult) LastInsertId

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

func (*FakeResult) LastInsertIdCallCount

func (fake *FakeResult) LastInsertIdCallCount() int

func (*FakeResult) LastInsertIdCalls

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

func (*FakeResult) LastInsertIdReturns

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

func (*FakeResult) LastInsertIdReturnsOnCall

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

func (*FakeResult) RowsAffected

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

func (*FakeResult) RowsAffectedCallCount

func (fake *FakeResult) RowsAffectedCallCount() int

func (*FakeResult) RowsAffectedCalls

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

func (*FakeResult) RowsAffectedReturns

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

func (*FakeResult) RowsAffectedReturnsOnCall

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

type FakeRows

type FakeRows struct {
	MapScanStub func(map[string]interface{}) error

	NextStub func() bool
	// contains filtered or unexported fields
}

func (*FakeRows) Invocations

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

func (*FakeRows) MapScan

func (fake *FakeRows) MapScan(arg1 map[string]interface{}) error

func (*FakeRows) MapScanArgsForCall

func (fake *FakeRows) MapScanArgsForCall(i int) map[string]interface{}

func (*FakeRows) MapScanCallCount

func (fake *FakeRows) MapScanCallCount() int

func (*FakeRows) MapScanCalls

func (fake *FakeRows) MapScanCalls(stub func(map[string]interface{}) error)

func (*FakeRows) MapScanReturns

func (fake *FakeRows) MapScanReturns(result1 error)

func (*FakeRows) MapScanReturnsOnCall

func (fake *FakeRows) MapScanReturnsOnCall(i int, result1 error)

func (*FakeRows) Next

func (fake *FakeRows) Next() bool

func (*FakeRows) NextCallCount

func (fake *FakeRows) NextCallCount() int

func (*FakeRows) NextCalls

func (fake *FakeRows) NextCalls(stub func() bool)

func (*FakeRows) NextReturns

func (fake *FakeRows) NextReturns(result1 bool)

func (*FakeRows) NextReturnsOnCall

func (fake *FakeRows) NextReturnsOnCall(i int, result1 bool)

Jump to

Keyboard shortcuts

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