fake

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

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.

Code generated by counterfeiter. DO NOT EDIT.

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File = fake.File

type FileSystem

type FileSystem = fake.FileSystem

type Logger

type Logger struct {
	AlertStub func(...interface{})

	AlertfStub func(string, ...interface{})

	DebugStub func(...interface{})

	DebugfStub func(string, ...interface{})

	ErrorStub func(...interface{})

	ErrorfStub func(string, ...interface{})

	FatalStub func(...interface{})

	FatalfStub func(string, ...interface{})

	FieldsStub func() log.Map

	InfoStub func(...interface{})

	InfofStub func(string, ...interface{})

	NoticeStub func(...interface{})

	NoticefStub func(string, ...interface{})

	PanicStub func(...interface{})

	PanicfStub func(string, ...interface{})

	WarnStub func(...interface{})

	WarnfStub func(string, ...interface{})

	WithErrorStub func(error) log.Logger

	WithFieldStub func(string, interface{}) log.Logger

	WithFieldsStub func(log.Map) log.Logger
	// contains filtered or unexported fields
}

func (*Logger) Alert

func (fake *Logger) Alert(arg1 ...interface{})

func (*Logger) AlertArgsForCall

func (fake *Logger) AlertArgsForCall(i int) []interface{}

func (*Logger) AlertCallCount

func (fake *Logger) AlertCallCount() int

func (*Logger) AlertCalls

func (fake *Logger) AlertCalls(stub func(...interface{}))

func (*Logger) Alertf

func (fake *Logger) Alertf(arg1 string, arg2 ...interface{})

func (*Logger) AlertfArgsForCall

func (fake *Logger) AlertfArgsForCall(i int) (string, []interface{})

func (*Logger) AlertfCallCount

func (fake *Logger) AlertfCallCount() int

func (*Logger) AlertfCalls

func (fake *Logger) AlertfCalls(stub func(string, ...interface{}))

func (*Logger) Debug

func (fake *Logger) Debug(arg1 ...interface{})

func (*Logger) DebugArgsForCall

func (fake *Logger) DebugArgsForCall(i int) []interface{}

func (*Logger) DebugCallCount

func (fake *Logger) DebugCallCount() int

func (*Logger) DebugCalls

func (fake *Logger) DebugCalls(stub func(...interface{}))

func (*Logger) Debugf

func (fake *Logger) Debugf(arg1 string, arg2 ...interface{})

func (*Logger) DebugfArgsForCall

func (fake *Logger) DebugfArgsForCall(i int) (string, []interface{})

func (*Logger) DebugfCallCount

func (fake *Logger) DebugfCallCount() int

func (*Logger) DebugfCalls

func (fake *Logger) DebugfCalls(stub func(string, ...interface{}))

func (*Logger) Error

func (fake *Logger) Error(arg1 ...interface{})

func (*Logger) ErrorArgsForCall

func (fake *Logger) ErrorArgsForCall(i int) []interface{}

func (*Logger) ErrorCallCount

func (fake *Logger) ErrorCallCount() int

func (*Logger) ErrorCalls

func (fake *Logger) ErrorCalls(stub func(...interface{}))

func (*Logger) Errorf

func (fake *Logger) Errorf(arg1 string, arg2 ...interface{})

func (*Logger) ErrorfArgsForCall

func (fake *Logger) ErrorfArgsForCall(i int) (string, []interface{})

func (*Logger) ErrorfCallCount

func (fake *Logger) ErrorfCallCount() int

func (*Logger) ErrorfCalls

func (fake *Logger) ErrorfCalls(stub func(string, ...interface{}))

func (*Logger) Fatal

func (fake *Logger) Fatal(arg1 ...interface{})

func (*Logger) FatalArgsForCall

func (fake *Logger) FatalArgsForCall(i int) []interface{}

func (*Logger) FatalCallCount

func (fake *Logger) FatalCallCount() int

func (*Logger) FatalCalls

func (fake *Logger) FatalCalls(stub func(...interface{}))

func (*Logger) Fatalf

func (fake *Logger) Fatalf(arg1 string, arg2 ...interface{})

func (*Logger) FatalfArgsForCall

func (fake *Logger) FatalfArgsForCall(i int) (string, []interface{})

func (*Logger) FatalfCallCount

func (fake *Logger) FatalfCallCount() int

func (*Logger) FatalfCalls

func (fake *Logger) FatalfCalls(stub func(string, ...interface{}))

func (*Logger) Fields

func (fake *Logger) Fields() log.Map

func (*Logger) FieldsCallCount

func (fake *Logger) FieldsCallCount() int

func (*Logger) FieldsCalls

func (fake *Logger) FieldsCalls(stub func() log.Map)

func (*Logger) FieldsReturns

func (fake *Logger) FieldsReturns(result1 log.Map)

func (*Logger) FieldsReturnsOnCall

func (fake *Logger) FieldsReturnsOnCall(i int, result1 log.Map)

func (*Logger) Info

func (fake *Logger) Info(arg1 ...interface{})

func (*Logger) InfoArgsForCall

func (fake *Logger) InfoArgsForCall(i int) []interface{}

func (*Logger) InfoCallCount

func (fake *Logger) InfoCallCount() int

func (*Logger) InfoCalls

func (fake *Logger) InfoCalls(stub func(...interface{}))

func (*Logger) Infof

func (fake *Logger) Infof(arg1 string, arg2 ...interface{})

func (*Logger) InfofArgsForCall

func (fake *Logger) InfofArgsForCall(i int) (string, []interface{})

func (*Logger) InfofCallCount

func (fake *Logger) InfofCallCount() int

func (*Logger) InfofCalls

func (fake *Logger) InfofCalls(stub func(string, ...interface{}))

func (*Logger) Invocations

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

func (*Logger) Notice

func (fake *Logger) Notice(arg1 ...interface{})

func (*Logger) NoticeArgsForCall

func (fake *Logger) NoticeArgsForCall(i int) []interface{}

func (*Logger) NoticeCallCount

func (fake *Logger) NoticeCallCount() int

func (*Logger) NoticeCalls

func (fake *Logger) NoticeCalls(stub func(...interface{}))

func (*Logger) Noticef

func (fake *Logger) Noticef(arg1 string, arg2 ...interface{})

func (*Logger) NoticefArgsForCall

func (fake *Logger) NoticefArgsForCall(i int) (string, []interface{})

func (*Logger) NoticefCallCount

func (fake *Logger) NoticefCallCount() int

func (*Logger) NoticefCalls

func (fake *Logger) NoticefCalls(stub func(string, ...interface{}))

func (*Logger) Panic

func (fake *Logger) Panic(arg1 ...interface{})

func (*Logger) PanicArgsForCall

func (fake *Logger) PanicArgsForCall(i int) []interface{}

func (*Logger) PanicCallCount

func (fake *Logger) PanicCallCount() int

func (*Logger) PanicCalls

func (fake *Logger) PanicCalls(stub func(...interface{}))

func (*Logger) Panicf

func (fake *Logger) Panicf(arg1 string, arg2 ...interface{})

func (*Logger) PanicfArgsForCall

func (fake *Logger) PanicfArgsForCall(i int) (string, []interface{})

func (*Logger) PanicfCallCount

func (fake *Logger) PanicfCallCount() int

func (*Logger) PanicfCalls

func (fake *Logger) PanicfCalls(stub func(string, ...interface{}))

func (*Logger) Warn

func (fake *Logger) Warn(arg1 ...interface{})

func (*Logger) WarnArgsForCall

func (fake *Logger) WarnArgsForCall(i int) []interface{}

func (*Logger) WarnCallCount

func (fake *Logger) WarnCallCount() int

func (*Logger) WarnCalls

func (fake *Logger) WarnCalls(stub func(...interface{}))

func (*Logger) Warnf

func (fake *Logger) Warnf(arg1 string, arg2 ...interface{})

func (*Logger) WarnfArgsForCall

func (fake *Logger) WarnfArgsForCall(i int) (string, []interface{})

func (*Logger) WarnfCallCount

func (fake *Logger) WarnfCallCount() int

func (*Logger) WarnfCalls

func (fake *Logger) WarnfCalls(stub func(string, ...interface{}))

func (*Logger) WithError

func (fake *Logger) WithError(arg1 error) log.Logger

func (*Logger) WithErrorArgsForCall

func (fake *Logger) WithErrorArgsForCall(i int) error

func (*Logger) WithErrorCallCount

func (fake *Logger) WithErrorCallCount() int

func (*Logger) WithErrorCalls

func (fake *Logger) WithErrorCalls(stub func(error) log.Logger)

func (*Logger) WithErrorReturns

func (fake *Logger) WithErrorReturns(result1 log.Logger)

func (*Logger) WithErrorReturnsOnCall

func (fake *Logger) WithErrorReturnsOnCall(i int, result1 log.Logger)

func (*Logger) WithField

func (fake *Logger) WithField(arg1 string, arg2 interface{}) log.Logger

func (*Logger) WithFieldArgsForCall

func (fake *Logger) WithFieldArgsForCall(i int) (string, interface{})

func (*Logger) WithFieldCallCount

func (fake *Logger) WithFieldCallCount() int

func (*Logger) WithFieldCalls

func (fake *Logger) WithFieldCalls(stub func(string, interface{}) log.Logger)

func (*Logger) WithFieldReturns

func (fake *Logger) WithFieldReturns(result1 log.Logger)

func (*Logger) WithFieldReturnsOnCall

func (fake *Logger) WithFieldReturnsOnCall(i int, result1 log.Logger)

func (*Logger) WithFields

func (fake *Logger) WithFields(arg1 log.Map) log.Logger

func (*Logger) WithFieldsArgsForCall

func (fake *Logger) WithFieldsArgsForCall(i int) log.Map

func (*Logger) WithFieldsCallCount

func (fake *Logger) WithFieldsCallCount() int

func (*Logger) WithFieldsCalls

func (fake *Logger) WithFieldsCalls(stub func(log.Map) log.Logger)

func (*Logger) WithFieldsReturns

func (fake *Logger) WithFieldsReturns(result1 log.Logger)

func (*Logger) WithFieldsReturnsOnCall

func (fake *Logger) WithFieldsReturnsOnCall(i int, result1 log.Logger)

type MigrationGenerator

type MigrationGenerator struct {
	CreateStub func(m *sqlmigr.Migration) error

	WriteStub func(m *sqlmigr.Migration, content *sqlmigr.Content) error
	// contains filtered or unexported fields
}

func (*MigrationGenerator) Create

func (fake *MigrationGenerator) Create(m *sqlmigr.Migration) error

func (*MigrationGenerator) CreateArgsForCall

func (fake *MigrationGenerator) CreateArgsForCall(i int) *sqlmigr.Migration

func (*MigrationGenerator) CreateCallCount

func (fake *MigrationGenerator) CreateCallCount() int

func (*MigrationGenerator) CreateReturns

func (fake *MigrationGenerator) CreateReturns(result1 error)

func (*MigrationGenerator) CreateReturnsOnCall

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

func (*MigrationGenerator) Invocations

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

func (*MigrationGenerator) Write

func (fake *MigrationGenerator) Write(m *sqlmigr.Migration, content *sqlmigr.Content) error

func (*MigrationGenerator) WriteArgsForCall

func (fake *MigrationGenerator) WriteArgsForCall(i int) (*sqlmigr.Migration, *sqlmigr.Content)

func (*MigrationGenerator) WriteCallCount

func (fake *MigrationGenerator) WriteCallCount() int

func (*MigrationGenerator) WriteReturns

func (fake *MigrationGenerator) WriteReturns(result1 error)

func (*MigrationGenerator) WriteReturnsOnCall

func (fake *MigrationGenerator) WriteReturnsOnCall(i int, result1 error)

type MigrationProvider

type MigrationProvider struct {
	MigrationsStub func() ([]*sqlmigr.Migration, error)

	InsertStub func(item *sqlmigr.Migration) error

	DeleteStub func(item *sqlmigr.Migration) error

	ExistsStub func(item *sqlmigr.Migration) bool
	// contains filtered or unexported fields
}

func (*MigrationProvider) Delete

func (fake *MigrationProvider) Delete(item *sqlmigr.Migration) error

func (*MigrationProvider) DeleteArgsForCall

func (fake *MigrationProvider) DeleteArgsForCall(i int) *sqlmigr.Migration

func (*MigrationProvider) DeleteCallCount

func (fake *MigrationProvider) DeleteCallCount() int

func (*MigrationProvider) DeleteReturns

func (fake *MigrationProvider) DeleteReturns(result1 error)

func (*MigrationProvider) DeleteReturnsOnCall

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

func (*MigrationProvider) Exists

func (fake *MigrationProvider) Exists(item *sqlmigr.Migration) bool

func (*MigrationProvider) ExistsArgsForCall

func (fake *MigrationProvider) ExistsArgsForCall(i int) *sqlmigr.Migration

func (*MigrationProvider) ExistsCallCount

func (fake *MigrationProvider) ExistsCallCount() int

func (*MigrationProvider) ExistsReturns

func (fake *MigrationProvider) ExistsReturns(result1 bool)

func (*MigrationProvider) ExistsReturnsOnCall

func (fake *MigrationProvider) ExistsReturnsOnCall(i int, result1 bool)

func (*MigrationProvider) Insert

func (fake *MigrationProvider) Insert(item *sqlmigr.Migration) error

func (*MigrationProvider) InsertArgsForCall

func (fake *MigrationProvider) InsertArgsForCall(i int) *sqlmigr.Migration

func (*MigrationProvider) InsertCallCount

func (fake *MigrationProvider) InsertCallCount() int

func (*MigrationProvider) InsertReturns

func (fake *MigrationProvider) InsertReturns(result1 error)

func (*MigrationProvider) InsertReturnsOnCall

func (fake *MigrationProvider) InsertReturnsOnCall(i int, result1 error)

func (*MigrationProvider) Invocations

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

func (*MigrationProvider) Migrations

func (fake *MigrationProvider) Migrations() ([]*sqlmigr.Migration, error)

func (*MigrationProvider) MigrationsCallCount

func (fake *MigrationProvider) MigrationsCallCount() int

func (*MigrationProvider) MigrationsReturns

func (fake *MigrationProvider) MigrationsReturns(result1 []*sqlmigr.Migration, result2 error)

func (*MigrationProvider) MigrationsReturnsOnCall

func (fake *MigrationProvider) MigrationsReturnsOnCall(i int, result1 []*sqlmigr.Migration, result2 error)

type MigrationRunner

type MigrationRunner struct {
	RunStub func(item *sqlmigr.Migration) error

	RevertStub func(item *sqlmigr.Migration) error
	// contains filtered or unexported fields
}

func (*MigrationRunner) Invocations

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

func (*MigrationRunner) Revert

func (fake *MigrationRunner) Revert(item *sqlmigr.Migration) error

func (*MigrationRunner) RevertArgsForCall

func (fake *MigrationRunner) RevertArgsForCall(i int) *sqlmigr.Migration

func (*MigrationRunner) RevertCallCount

func (fake *MigrationRunner) RevertCallCount() int

func (*MigrationRunner) RevertReturns

func (fake *MigrationRunner) RevertReturns(result1 error)

func (*MigrationRunner) RevertReturnsOnCall

func (fake *MigrationRunner) RevertReturnsOnCall(i int, result1 error)

func (*MigrationRunner) Run

func (fake *MigrationRunner) Run(item *sqlmigr.Migration) error

func (*MigrationRunner) RunArgsForCall

func (fake *MigrationRunner) RunArgsForCall(i int) *sqlmigr.Migration

func (*MigrationRunner) RunCallCount

func (fake *MigrationRunner) RunCallCount() int

func (*MigrationRunner) RunReturns

func (fake *MigrationRunner) RunReturns(result1 error)

func (*MigrationRunner) RunReturnsOnCall

func (fake *MigrationRunner) RunReturnsOnCall(i int, result1 error)

type ModelGenerator

type ModelGenerator struct {
	GenerateStub func(ctx *sqlmodel.GeneratorContext) error
	// contains filtered or unexported fields
}

func (*ModelGenerator) Generate

func (fake *ModelGenerator) Generate(ctx *sqlmodel.GeneratorContext) error

func (*ModelGenerator) GenerateArgsForCall

func (fake *ModelGenerator) GenerateArgsForCall(i int) *sqlmodel.GeneratorContext

func (*ModelGenerator) GenerateCallCount

func (fake *ModelGenerator) GenerateCallCount() int

func (*ModelGenerator) GenerateReturns

func (fake *ModelGenerator) GenerateReturns(result1 error)

func (*ModelGenerator) GenerateReturnsOnCall

func (fake *ModelGenerator) GenerateReturnsOnCall(i int, result1 error)

func (*ModelGenerator) Invocations

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

type ModelTagBuilder

type ModelTagBuilder struct {
	BuildStub func(column *sqlmodel.Column) string
	// contains filtered or unexported fields
}

func (*ModelTagBuilder) Build

func (fake *ModelTagBuilder) Build(column *sqlmodel.Column) string

func (*ModelTagBuilder) BuildArgsForCall

func (fake *ModelTagBuilder) BuildArgsForCall(i int) *sqlmodel.Column

func (*ModelTagBuilder) BuildCallCount

func (fake *ModelTagBuilder) BuildCallCount() int

func (*ModelTagBuilder) BuildReturns

func (fake *ModelTagBuilder) BuildReturns(result1 string)

func (*ModelTagBuilder) Invocations

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

type Querier

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

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

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

func (*Querier) Close

func (fake *Querier) Close() error

func (*Querier) CloseCallCount

func (fake *Querier) CloseCallCount() int

func (*Querier) CloseReturns

func (fake *Querier) CloseReturns(result1 error)

func (*Querier) CloseReturnsOnCall

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

func (*Querier) Invocations

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

func (*Querier) Query

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

func (*Querier) QueryArgsForCall

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

func (*Querier) QueryCallCount

func (fake *Querier) QueryCallCount() int

func (*Querier) QueryReturns

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

func (*Querier) QueryReturnsOnCall

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

func (*Querier) QueryRow

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

func (*Querier) QueryRowArgsForCall

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

func (*Querier) QueryRowCallCount

func (fake *Querier) QueryRowCallCount() int

func (*Querier) QueryRowReturns

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

func (*Querier) QueryRowReturnsOnCall

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

type SchemaProvider

type SchemaProvider struct {
	TablesStub func(schema string) ([]string, error)

	SchemaStub func(schema string, tables ...string) (*sqlmodel.Schema, error)

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

func (*SchemaProvider) Close

func (fake *SchemaProvider) Close() error

func (*SchemaProvider) CloseCallCount

func (fake *SchemaProvider) CloseCallCount() int

func (*SchemaProvider) CloseReturns

func (fake *SchemaProvider) CloseReturns(result1 error)

func (*SchemaProvider) CloseReturnsOnCall

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

func (*SchemaProvider) Invocations

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

func (*SchemaProvider) Schema

func (fake *SchemaProvider) Schema(schema string, tables ...string) (*sqlmodel.Schema, error)

func (*SchemaProvider) SchemaArgsForCall

func (fake *SchemaProvider) SchemaArgsForCall(i int) (string, []string)

func (*SchemaProvider) SchemaCallCount

func (fake *SchemaProvider) SchemaCallCount() int

func (*SchemaProvider) SchemaReturns

func (fake *SchemaProvider) SchemaReturns(result1 *sqlmodel.Schema, result2 error)

func (*SchemaProvider) SchemaReturnsOnCall

func (fake *SchemaProvider) SchemaReturnsOnCall(i int, result1 *sqlmodel.Schema, result2 error)

func (*SchemaProvider) Tables

func (fake *SchemaProvider) Tables(schema string) ([]string, error)

func (*SchemaProvider) TablesArgsForCall

func (fake *SchemaProvider) TablesArgsForCall(i int) string

func (*SchemaProvider) TablesCallCount

func (fake *SchemaProvider) TablesCallCount() int

func (*SchemaProvider) TablesReturns

func (fake *SchemaProvider) TablesReturns(result1 []string, result2 error)

func (*SchemaProvider) TablesReturnsOnCall

func (fake *SchemaProvider) TablesReturnsOnCall(i int, result1 []string, result2 error)

type TagBuilder

type TagBuilder struct {
	BuildStub func(column *sqlmodel.Column) string
	// contains filtered or unexported fields
}

func (*TagBuilder) Build

func (fake *TagBuilder) Build(column *sqlmodel.Column) string

func (*TagBuilder) BuildArgsForCall

func (fake *TagBuilder) BuildArgsForCall(i int) *sqlmodel.Column

func (*TagBuilder) BuildCallCount

func (fake *TagBuilder) BuildCallCount() int

func (*TagBuilder) BuildReturns

func (fake *TagBuilder) BuildReturns(result1 string)

func (*TagBuilder) BuildReturnsOnCall

func (fake *TagBuilder) BuildReturnsOnCall(i int, result1 string)

func (*TagBuilder) Invocations

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

Jump to

Keyboard shortcuts

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