storefakes

package
v0.1.183 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

This file was generated by counterfeiter

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDbProvider

type FakeDbProvider struct {
	DbStub func() (store.IDb, error)
	// contains filtered or unexported fields
}

func (*FakeDbProvider) Db

func (fake *FakeDbProvider) Db() (store.IDb, error)

func (*FakeDbProvider) DbCallCount

func (fake *FakeDbProvider) DbCallCount() int

func (*FakeDbProvider) DbReturns

func (fake *FakeDbProvider) DbReturns(result1 store.IDb, result2 error)

func (*FakeDbProvider) DbReturnsOnCall added in v0.0.146

func (fake *FakeDbProvider) DbReturnsOnCall(i int, result1 store.IDb, result2 error)

func (*FakeDbProvider) Invocations

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

type FakeIDb

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

	QueryStub func(query string, args ...interface{}) (store.IRows, error)

	QueryRowStub func(query string, args ...interface{}) store.IRow

	SetMaxOpenConnsStub func(n int)

	SetMaxIdleConnsStub func(n int)

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

func (*FakeIDb) Close

func (fake *FakeIDb) Close()

func (*FakeIDb) CloseCallCount

func (fake *FakeIDb) CloseCallCount() int

func (*FakeIDb) Exec

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

func (*FakeIDb) ExecArgsForCall

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

func (*FakeIDb) ExecCallCount

func (fake *FakeIDb) ExecCallCount() int

func (*FakeIDb) ExecReturns

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

func (*FakeIDb) Invocations

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

func (*FakeIDb) Query

func (fake *FakeIDb) Query(query string, args ...interface{}) (store.IRows, error)

func (*FakeIDb) QueryArgsForCall

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

func (*FakeIDb) QueryCallCount

func (fake *FakeIDb) QueryCallCount() int

func (*FakeIDb) QueryReturns

func (fake *FakeIDb) QueryReturns(result1 store.IRows, result2 error)

func (*FakeIDb) QueryRow

func (fake *FakeIDb) QueryRow(query string, args ...interface{}) store.IRow

func (*FakeIDb) QueryRowArgsForCall

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

func (*FakeIDb) QueryRowCallCount

func (fake *FakeIDb) QueryRowCallCount() int

func (*FakeIDb) QueryRowReturns

func (fake *FakeIDb) QueryRowReturns(result1 store.IRow)

func (*FakeIDb) SetMaxIdleConns

func (fake *FakeIDb) SetMaxIdleConns(n int)

func (*FakeIDb) SetMaxIdleConnsArgsForCall

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

func (*FakeIDb) SetMaxIdleConnsCallCount

func (fake *FakeIDb) SetMaxIdleConnsCallCount() int

func (*FakeIDb) SetMaxOpenConns

func (fake *FakeIDb) SetMaxOpenConns(n int)

func (*FakeIDb) SetMaxOpenConnsArgsForCall

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

func (*FakeIDb) SetMaxOpenConnsCallCount

func (fake *FakeIDb) SetMaxOpenConnsCallCount() int

type FakeIRow

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

func (*FakeIRow) Invocations

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

func (*FakeIRow) Scan

func (fake *FakeIRow) Scan(dest ...interface{}) error

func (*FakeIRow) ScanArgsForCall

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

func (*FakeIRow) ScanCallCount

func (fake *FakeIRow) ScanCallCount() int

func (*FakeIRow) ScanReturns

func (fake *FakeIRow) ScanReturns(result1 error)

func (*FakeIRow) ScanReturnsOnCall added in v0.0.146

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

type FakeIRows

type FakeIRows struct {
	NextStub func() bool

	CloseStub func() error

	ScanStub func(dest ...interface{}) error
	// contains filtered or unexported fields
}

func (*FakeIRows) Close

func (fake *FakeIRows) Close() error

func (*FakeIRows) CloseCallCount

func (fake *FakeIRows) CloseCallCount() int

func (*FakeIRows) CloseReturns

func (fake *FakeIRows) CloseReturns(result1 error)

func (*FakeIRows) CloseReturnsOnCall added in v0.0.146

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

func (*FakeIRows) Invocations

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

func (*FakeIRows) Next

func (fake *FakeIRows) Next() bool

func (*FakeIRows) NextCallCount

func (fake *FakeIRows) NextCallCount() int

func (*FakeIRows) NextReturns

func (fake *FakeIRows) NextReturns(result1 bool)

func (*FakeIRows) NextReturnsOnCall added in v0.0.146

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

func (*FakeIRows) Scan

func (fake *FakeIRows) Scan(dest ...interface{}) error

func (*FakeIRows) ScanArgsForCall

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

func (*FakeIRows) ScanCallCount

func (fake *FakeIRows) ScanCallCount() int

func (*FakeIRows) ScanReturns

func (fake *FakeIRows) ScanReturns(result1 error)

func (*FakeIRows) ScanReturnsOnCall added in v0.0.146

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

type FakeISql

type FakeISql struct {
	OpenWithStub func(driverName, dataSourceName string, migrations []migration.Migrator, getVersion migration.GetVersion, setVersion migration.SetVersion) (store.IDb, error)
	// contains filtered or unexported fields
}

func (*FakeISql) Invocations

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

func (*FakeISql) OpenWith added in v0.0.146

func (fake *FakeISql) OpenWith(driverName string, dataSourceName string, migrations []migration.Migrator, getVersion migration.GetVersion, setVersion migration.SetVersion) (store.IDb, error)

func (*FakeISql) OpenWithArgsForCall added in v0.0.146

func (fake *FakeISql) OpenWithArgsForCall(i int) (string, string, []migration.Migrator, migration.GetVersion, migration.SetVersion)

func (*FakeISql) OpenWithCallCount added in v0.0.146

func (fake *FakeISql) OpenWithCallCount() int

func (*FakeISql) OpenWithReturns added in v0.0.146

func (fake *FakeISql) OpenWithReturns(result1 store.IDb, result2 error)

func (*FakeISql) OpenWithReturnsOnCall added in v0.0.146

func (fake *FakeISql) OpenWithReturnsOnCall(i int, result1 store.IDb, 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) LastInsertIdReturns

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

func (*FakeResult) RowsAffected

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

func (*FakeResult) RowsAffectedCallCount

func (fake *FakeResult) RowsAffectedCallCount() int

func (*FakeResult) RowsAffectedReturns

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

type FakeStore

type FakeStore struct {
	PutStub func(key string, value string, checksum string) (string, error)

	GetByNameStub func(name string) (store.Configurations, error)

	GetByIDStub func(id string) (store.Configuration, error)

	DeleteStub func(key string) (int, error)
	// contains filtered or unexported fields
}

func (*FakeStore) Delete

func (fake *FakeStore) Delete(key string) (int, error)

func (*FakeStore) DeleteArgsForCall

func (fake *FakeStore) DeleteArgsForCall(i int) string

func (*FakeStore) DeleteCallCount

func (fake *FakeStore) DeleteCallCount() int

func (*FakeStore) DeleteReturns

func (fake *FakeStore) DeleteReturns(result1 int, result2 error)

func (*FakeStore) GetByID

func (fake *FakeStore) GetByID(id string) (store.Configuration, error)

func (*FakeStore) GetByIDArgsForCall

func (fake *FakeStore) GetByIDArgsForCall(i int) string

func (*FakeStore) GetByIDCallCount

func (fake *FakeStore) GetByIDCallCount() int

func (*FakeStore) GetByIDReturns

func (fake *FakeStore) GetByIDReturns(result1 store.Configuration, result2 error)

func (*FakeStore) GetByName

func (fake *FakeStore) GetByName(name string) (store.Configurations, error)

func (*FakeStore) GetByNameArgsForCall

func (fake *FakeStore) GetByNameArgsForCall(i int) string

func (*FakeStore) GetByNameCallCount

func (fake *FakeStore) GetByNameCallCount() int

func (*FakeStore) GetByNameReturns

func (fake *FakeStore) GetByNameReturns(result1 store.Configurations, result2 error)

func (*FakeStore) Invocations

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

func (*FakeStore) Put

func (fake *FakeStore) Put(key string, value string, checksum string) (string, error)

func (*FakeStore) PutArgsForCall

func (fake *FakeStore) PutArgsForCall(i int) (string, string, string)

func (*FakeStore) PutCallCount

func (fake *FakeStore) PutCallCount() int

func (*FakeStore) PutReturns

func (fake *FakeStore) PutReturns(result1 string, result2 error)

Jump to

Keyboard shortcuts

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