fakes

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: Apache-2.0 Imports: 6 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.

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 Db

type Db struct {
	BeginxStub func() (*sqlx.Tx, error)

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

	NamedExecStub func(query string, arg interface{}) (sql.Result, error)

	GetStub func(dest interface{}, query string, args ...interface{}) error

	SelectStub func(dest interface{}, query string, args ...interface{}) error

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

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

	DriverNameStub func() string
	// contains filtered or unexported fields
}

func (*Db) Beginx

func (fake *Db) Beginx() (*sqlx.Tx, error)

func (*Db) BeginxCallCount

func (fake *Db) BeginxCallCount() int

func (*Db) BeginxReturns

func (fake *Db) BeginxReturns(result1 *sqlx.Tx, result2 error)

func (*Db) BeginxReturnsOnCall added in v0.22.0

func (fake *Db) BeginxReturnsOnCall(i int, result1 *sqlx.Tx, result2 error)

func (*Db) DriverName

func (fake *Db) DriverName() string

func (*Db) DriverNameCallCount

func (fake *Db) DriverNameCallCount() int

func (*Db) DriverNameReturns

func (fake *Db) DriverNameReturns(result1 string)

func (*Db) DriverNameReturnsOnCall added in v0.22.0

func (fake *Db) DriverNameReturnsOnCall(i int, result1 string)

func (*Db) Exec

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

func (*Db) ExecArgsForCall

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

func (*Db) ExecCallCount

func (fake *Db) ExecCallCount() int

func (*Db) ExecReturns

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

func (*Db) ExecReturnsOnCall added in v0.22.0

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

func (*Db) Get

func (fake *Db) Get(dest interface{}, query string, args ...interface{}) error

func (*Db) GetArgsForCall

func (fake *Db) GetArgsForCall(i int) (interface{}, string, []interface{})

func (*Db) GetCallCount

func (fake *Db) GetCallCount() int

func (*Db) GetReturns

func (fake *Db) GetReturns(result1 error)

func (*Db) GetReturnsOnCall added in v0.22.0

func (fake *Db) GetReturnsOnCall(i int, result1 error)

func (*Db) Invocations

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

func (*Db) NamedExec

func (fake *Db) NamedExec(query string, arg interface{}) (sql.Result, error)

func (*Db) NamedExecArgsForCall

func (fake *Db) NamedExecArgsForCall(i int) (string, interface{})

func (*Db) NamedExecCallCount

func (fake *Db) NamedExecCallCount() int

func (*Db) NamedExecReturns

func (fake *Db) NamedExecReturns(result1 sql.Result, result2 error)

func (*Db) NamedExecReturnsOnCall added in v0.22.0

func (fake *Db) NamedExecReturnsOnCall(i int, result1 sql.Result, result2 error)

func (*Db) Query

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

func (*Db) QueryArgsForCall

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

func (*Db) QueryCallCount

func (fake *Db) QueryCallCount() int

func (*Db) QueryReturns

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

func (*Db) QueryReturnsOnCall added in v0.22.0

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

func (*Db) QueryRow

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

func (*Db) QueryRowArgsForCall

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

func (*Db) QueryRowCallCount

func (fake *Db) QueryRowCallCount() int

func (*Db) QueryRowReturns

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

func (*Db) QueryRowReturnsOnCall added in v0.22.0

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

func (*Db) Select

func (fake *Db) Select(dest interface{}, query string, args ...interface{}) error

func (*Db) SelectArgsForCall

func (fake *Db) SelectArgsForCall(i int) (interface{}, string, []interface{})

func (*Db) SelectCallCount

func (fake *Db) SelectCallCount() int

func (*Db) SelectReturns

func (fake *Db) SelectReturns(result1 error)

func (*Db) SelectReturnsOnCall added in v0.22.0

func (fake *Db) SelectReturnsOnCall(i int, result1 error)

type DestinationRepo

type DestinationRepo struct {
	CreateStub func(store.Transaction, int, int, int, int, string) (int, error)

	DeleteStub func(store.Transaction, int) error

	GetIDStub func(store.Transaction, int, int, int, int, string) (int, error)

	CountWhereGroupIDStub func(store.Transaction, int) (int, error)
	// contains filtered or unexported fields
}

func (*DestinationRepo) CountWhereGroupID

func (fake *DestinationRepo) CountWhereGroupID(arg1 store.Transaction, arg2 int) (int, error)

func (*DestinationRepo) CountWhereGroupIDArgsForCall

func (fake *DestinationRepo) CountWhereGroupIDArgsForCall(i int) (store.Transaction, int)

func (*DestinationRepo) CountWhereGroupIDCallCount

func (fake *DestinationRepo) CountWhereGroupIDCallCount() int

func (*DestinationRepo) CountWhereGroupIDReturns

func (fake *DestinationRepo) CountWhereGroupIDReturns(result1 int, result2 error)

func (*DestinationRepo) CountWhereGroupIDReturnsOnCall added in v0.22.0

func (fake *DestinationRepo) CountWhereGroupIDReturnsOnCall(i int, result1 int, result2 error)

func (*DestinationRepo) Create

func (fake *DestinationRepo) Create(arg1 store.Transaction, arg2 int, arg3 int, arg4 int, arg5 int, arg6 string) (int, error)

func (*DestinationRepo) CreateArgsForCall

func (fake *DestinationRepo) CreateArgsForCall(i int) (store.Transaction, int, int, int, int, string)

func (*DestinationRepo) CreateCallCount

func (fake *DestinationRepo) CreateCallCount() int

func (*DestinationRepo) CreateReturns

func (fake *DestinationRepo) CreateReturns(result1 int, result2 error)

func (*DestinationRepo) CreateReturnsOnCall added in v0.22.0

func (fake *DestinationRepo) CreateReturnsOnCall(i int, result1 int, result2 error)

func (*DestinationRepo) Delete

func (fake *DestinationRepo) Delete(arg1 store.Transaction, arg2 int) error

func (*DestinationRepo) DeleteArgsForCall

func (fake *DestinationRepo) DeleteArgsForCall(i int) (store.Transaction, int)

func (*DestinationRepo) DeleteCallCount

func (fake *DestinationRepo) DeleteCallCount() int

func (*DestinationRepo) DeleteReturns

func (fake *DestinationRepo) DeleteReturns(result1 error)

func (*DestinationRepo) DeleteReturnsOnCall added in v0.22.0

func (fake *DestinationRepo) DeleteReturnsOnCall(i int, result1 error)

func (*DestinationRepo) GetID

func (fake *DestinationRepo) GetID(arg1 store.Transaction, arg2 int, arg3 int, arg4 int, arg5 int, arg6 string) (int, error)

func (*DestinationRepo) GetIDArgsForCall

func (fake *DestinationRepo) GetIDArgsForCall(i int) (store.Transaction, int, int, int, int, string)

func (*DestinationRepo) GetIDCallCount

func (fake *DestinationRepo) GetIDCallCount() int

func (*DestinationRepo) GetIDReturns

func (fake *DestinationRepo) GetIDReturns(result1 int, result2 error)

func (*DestinationRepo) GetIDReturnsOnCall added in v0.22.0

func (fake *DestinationRepo) GetIDReturnsOnCall(i int, result1 int, result2 error)

func (*DestinationRepo) Invocations

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

type GroupRepo

type GroupRepo struct {
	CreateStub func(store.Transaction, string) (int, error)

	DeleteStub func(store.Transaction, int) error

	GetIDStub func(store.Transaction, string) (int, error)
	// contains filtered or unexported fields
}

func (*GroupRepo) Create

func (fake *GroupRepo) Create(arg1 store.Transaction, arg2 string) (int, error)

func (*GroupRepo) CreateArgsForCall

func (fake *GroupRepo) CreateArgsForCall(i int) (store.Transaction, string)

func (*GroupRepo) CreateCallCount

func (fake *GroupRepo) CreateCallCount() int

func (*GroupRepo) CreateReturns

func (fake *GroupRepo) CreateReturns(result1 int, result2 error)

func (*GroupRepo) CreateReturnsOnCall added in v0.22.0

func (fake *GroupRepo) CreateReturnsOnCall(i int, result1 int, result2 error)

func (*GroupRepo) Delete

func (fake *GroupRepo) Delete(arg1 store.Transaction, arg2 int) error

func (*GroupRepo) DeleteArgsForCall

func (fake *GroupRepo) DeleteArgsForCall(i int) (store.Transaction, int)

func (*GroupRepo) DeleteCallCount

func (fake *GroupRepo) DeleteCallCount() int

func (*GroupRepo) DeleteReturns

func (fake *GroupRepo) DeleteReturns(result1 error)

func (*GroupRepo) DeleteReturnsOnCall added in v0.22.0

func (fake *GroupRepo) DeleteReturnsOnCall(i int, result1 error)

func (*GroupRepo) GetID

func (fake *GroupRepo) GetID(arg1 store.Transaction, arg2 string) (int, error)

func (*GroupRepo) GetIDArgsForCall

func (fake *GroupRepo) GetIDArgsForCall(i int) (store.Transaction, string)

func (*GroupRepo) GetIDCallCount

func (fake *GroupRepo) GetIDCallCount() int

func (*GroupRepo) GetIDReturns

func (fake *GroupRepo) GetIDReturns(result1 int, result2 error)

func (*GroupRepo) GetIDReturnsOnCall added in v0.22.0

func (fake *GroupRepo) GetIDReturnsOnCall(i int, result1 int, result2 error)

func (*GroupRepo) Invocations

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

type MetricsSender added in v0.17.0

type MetricsSender struct {
	IncrementCounterStub func(string)

	SendDurationStub func(string, time.Duration)
	// contains filtered or unexported fields
}

func (*MetricsSender) IncrementCounter added in v0.17.0

func (fake *MetricsSender) IncrementCounter(arg1 string)

func (*MetricsSender) IncrementCounterArgsForCall added in v0.17.0

func (fake *MetricsSender) IncrementCounterArgsForCall(i int) string

func (*MetricsSender) IncrementCounterCallCount added in v0.17.0

func (fake *MetricsSender) IncrementCounterCallCount() int

func (*MetricsSender) Invocations added in v0.17.0

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

func (*MetricsSender) SendDuration added in v0.17.0

func (fake *MetricsSender) SendDuration(arg1 string, arg2 time.Duration)

func (*MetricsSender) SendDurationArgsForCall added in v0.17.0

func (fake *MetricsSender) SendDurationArgsForCall(i int) (string, time.Duration)

func (*MetricsSender) SendDurationCallCount added in v0.17.0

func (fake *MetricsSender) SendDurationCallCount() int

type Migrator added in v1.4.0

type Migrator struct {
	PerformMigrationsStub func(driverName string, migrationDb migrations.MigrationDb, maxNumMigrations int) (int, error)
	// contains filtered or unexported fields
}

func (*Migrator) Invocations added in v1.4.0

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

func (*Migrator) PerformMigrations added in v1.4.0

func (fake *Migrator) PerformMigrations(driverName string, migrationDb migrations.MigrationDb, maxNumMigrations int) (int, error)

func (*Migrator) PerformMigrationsArgsForCall added in v1.4.0

func (fake *Migrator) PerformMigrationsArgsForCall(i int) (string, migrations.MigrationDb, int)

func (*Migrator) PerformMigrationsCallCount added in v1.4.0

func (fake *Migrator) PerformMigrationsCallCount() int

func (*Migrator) PerformMigrationsReturns added in v1.4.0

func (fake *Migrator) PerformMigrationsReturns(result1 int, result2 error)

func (*Migrator) PerformMigrationsReturnsOnCall added in v1.4.0

func (fake *Migrator) PerformMigrationsReturnsOnCall(i int, result1 int, result2 error)

type PolicyRepo

type PolicyRepo struct {
	CreateStub func(store.Transaction, int, int) error

	DeleteStub func(store.Transaction, int, int) error

	CountWhereGroupIDStub func(store.Transaction, int) (int, error)

	CountWhereDestinationIDStub func(store.Transaction, int) (int, error)
	// contains filtered or unexported fields
}

func (*PolicyRepo) CountWhereDestinationID

func (fake *PolicyRepo) CountWhereDestinationID(arg1 store.Transaction, arg2 int) (int, error)

func (*PolicyRepo) CountWhereDestinationIDArgsForCall

func (fake *PolicyRepo) CountWhereDestinationIDArgsForCall(i int) (store.Transaction, int)

func (*PolicyRepo) CountWhereDestinationIDCallCount

func (fake *PolicyRepo) CountWhereDestinationIDCallCount() int

func (*PolicyRepo) CountWhereDestinationIDReturns

func (fake *PolicyRepo) CountWhereDestinationIDReturns(result1 int, result2 error)

func (*PolicyRepo) CountWhereDestinationIDReturnsOnCall added in v0.22.0

func (fake *PolicyRepo) CountWhereDestinationIDReturnsOnCall(i int, result1 int, result2 error)

func (*PolicyRepo) CountWhereGroupID

func (fake *PolicyRepo) CountWhereGroupID(arg1 store.Transaction, arg2 int) (int, error)

func (*PolicyRepo) CountWhereGroupIDArgsForCall

func (fake *PolicyRepo) CountWhereGroupIDArgsForCall(i int) (store.Transaction, int)

func (*PolicyRepo) CountWhereGroupIDCallCount

func (fake *PolicyRepo) CountWhereGroupIDCallCount() int

func (*PolicyRepo) CountWhereGroupIDReturns

func (fake *PolicyRepo) CountWhereGroupIDReturns(result1 int, result2 error)

func (*PolicyRepo) CountWhereGroupIDReturnsOnCall added in v0.22.0

func (fake *PolicyRepo) CountWhereGroupIDReturnsOnCall(i int, result1 int, result2 error)

func (*PolicyRepo) Create

func (fake *PolicyRepo) Create(arg1 store.Transaction, arg2 int, arg3 int) error

func (*PolicyRepo) CreateArgsForCall

func (fake *PolicyRepo) CreateArgsForCall(i int) (store.Transaction, int, int)

func (*PolicyRepo) CreateCallCount

func (fake *PolicyRepo) CreateCallCount() int

func (*PolicyRepo) CreateReturns

func (fake *PolicyRepo) CreateReturns(result1 error)

func (*PolicyRepo) CreateReturnsOnCall added in v0.22.0

func (fake *PolicyRepo) CreateReturnsOnCall(i int, result1 error)

func (*PolicyRepo) Delete

func (fake *PolicyRepo) Delete(arg1 store.Transaction, arg2 int, arg3 int) error

func (*PolicyRepo) DeleteArgsForCall

func (fake *PolicyRepo) DeleteArgsForCall(i int) (store.Transaction, int, int)

func (*PolicyRepo) DeleteCallCount

func (fake *PolicyRepo) DeleteCallCount() int

func (*PolicyRepo) DeleteReturns

func (fake *PolicyRepo) DeleteReturns(result1 error)

func (*PolicyRepo) DeleteReturnsOnCall added in v0.22.0

func (fake *PolicyRepo) DeleteReturnsOnCall(i int, result1 error)

func (*PolicyRepo) Invocations

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

type SqlResult

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

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

func (*SqlResult) Invocations

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

func (*SqlResult) LastInsertId

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

func (*SqlResult) LastInsertIdCallCount

func (fake *SqlResult) LastInsertIdCallCount() int

func (*SqlResult) LastInsertIdReturns

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

func (*SqlResult) LastInsertIdReturnsOnCall added in v0.22.0

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

func (*SqlResult) RowsAffected

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

func (*SqlResult) RowsAffectedCallCount

func (fake *SqlResult) RowsAffectedCallCount() int

func (*SqlResult) RowsAffectedReturns

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

func (*SqlResult) RowsAffectedReturnsOnCall added in v0.22.0

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

type Store added in v0.17.0

type Store struct {
	CreateStub func([]store.Policy) error

	AllStub func() ([]store.Policy, error)

	DeleteStub func([]store.Policy) error

	TagsStub func() ([]store.Tag, error)

	ByGuidsStub func([]string, []string) ([]store.Policy, error)

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

func (*Store) All added in v0.17.0

func (fake *Store) All() ([]store.Policy, error)

func (*Store) AllCallCount added in v0.17.0

func (fake *Store) AllCallCount() int

func (*Store) AllReturns added in v0.17.0

func (fake *Store) AllReturns(result1 []store.Policy, result2 error)

func (*Store) AllReturnsOnCall added in v0.22.0

func (fake *Store) AllReturnsOnCall(i int, result1 []store.Policy, result2 error)

func (*Store) ByGuids added in v0.17.0

func (fake *Store) ByGuids(arg1 []string, arg2 []string) ([]store.Policy, error)

func (*Store) ByGuidsArgsForCall added in v0.17.0

func (fake *Store) ByGuidsArgsForCall(i int) ([]string, []string)

func (*Store) ByGuidsCallCount added in v0.17.0

func (fake *Store) ByGuidsCallCount() int

func (*Store) ByGuidsReturns added in v0.17.0

func (fake *Store) ByGuidsReturns(result1 []store.Policy, result2 error)

func (*Store) ByGuidsReturnsOnCall added in v0.22.0

func (fake *Store) ByGuidsReturnsOnCall(i int, result1 []store.Policy, result2 error)

func (*Store) CheckDatabase added in v1.0.0

func (fake *Store) CheckDatabase() error

func (*Store) CheckDatabaseCallCount added in v1.0.0

func (fake *Store) CheckDatabaseCallCount() int

func (*Store) CheckDatabaseReturns added in v1.0.0

func (fake *Store) CheckDatabaseReturns(result1 error)

func (*Store) CheckDatabaseReturnsOnCall added in v1.0.0

func (fake *Store) CheckDatabaseReturnsOnCall(i int, result1 error)

func (*Store) Create added in v0.17.0

func (fake *Store) Create(arg1 []store.Policy) error

func (*Store) CreateArgsForCall added in v0.17.0

func (fake *Store) CreateArgsForCall(i int) []store.Policy

func (*Store) CreateCallCount added in v0.17.0

func (fake *Store) CreateCallCount() int

func (*Store) CreateReturns added in v0.17.0

func (fake *Store) CreateReturns(result1 error)

func (*Store) CreateReturnsOnCall added in v0.22.0

func (fake *Store) CreateReturnsOnCall(i int, result1 error)

func (*Store) Delete added in v0.17.0

func (fake *Store) Delete(arg1 []store.Policy) error

func (*Store) DeleteArgsForCall added in v0.17.0

func (fake *Store) DeleteArgsForCall(i int) []store.Policy

func (*Store) DeleteCallCount added in v0.17.0

func (fake *Store) DeleteCallCount() int

func (*Store) DeleteReturns added in v0.17.0

func (fake *Store) DeleteReturns(result1 error)

func (*Store) DeleteReturnsOnCall added in v0.22.0

func (fake *Store) DeleteReturnsOnCall(i int, result1 error)

func (*Store) Invocations added in v0.17.0

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

func (*Store) Tags added in v0.17.0

func (fake *Store) Tags() ([]store.Tag, error)

func (*Store) TagsCallCount added in v0.17.0

func (fake *Store) TagsCallCount() int

func (*Store) TagsReturns added in v0.17.0

func (fake *Store) TagsReturns(result1 []store.Tag, result2 error)

func (*Store) TagsReturnsOnCall added in v0.22.0

func (fake *Store) TagsReturnsOnCall(i int, result1 []store.Tag, result2 error)

Jump to

Keyboard shortcuts

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