voyagerfakes

package
v0.0.0-...-d8b352d Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: Apache-2.0 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.

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 FakeMigrator

type FakeMigrator struct {
	CurrentVersionStub func(lager.Logger, *sql.DB) (int, error)

	MigrateStub func(lager.Logger, *sql.DB, int) error

	SupportedVersionStub func(lager.Logger) (int, error)

	UpStub func(lager.Logger, *sql.DB) error
	// contains filtered or unexported fields
}

func (*FakeMigrator) CurrentVersion

func (fake *FakeMigrator) CurrentVersion(arg1 lager.Logger, arg2 *sql.DB) (int, error)

func (*FakeMigrator) CurrentVersionArgsForCall

func (fake *FakeMigrator) CurrentVersionArgsForCall(i int) (lager.Logger, *sql.DB)

func (*FakeMigrator) CurrentVersionCallCount

func (fake *FakeMigrator) CurrentVersionCallCount() int

func (*FakeMigrator) CurrentVersionCalls

func (fake *FakeMigrator) CurrentVersionCalls(stub func(lager.Logger, *sql.DB) (int, error))

func (*FakeMigrator) CurrentVersionReturns

func (fake *FakeMigrator) CurrentVersionReturns(result1 int, result2 error)

func (*FakeMigrator) CurrentVersionReturnsOnCall

func (fake *FakeMigrator) CurrentVersionReturnsOnCall(i int, result1 int, result2 error)

func (*FakeMigrator) Invocations

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

func (*FakeMigrator) Migrate

func (fake *FakeMigrator) Migrate(arg1 lager.Logger, arg2 *sql.DB, arg3 int) error

func (*FakeMigrator) MigrateArgsForCall

func (fake *FakeMigrator) MigrateArgsForCall(i int) (lager.Logger, *sql.DB, int)

func (*FakeMigrator) MigrateCallCount

func (fake *FakeMigrator) MigrateCallCount() int

func (*FakeMigrator) MigrateCalls

func (fake *FakeMigrator) MigrateCalls(stub func(lager.Logger, *sql.DB, int) error)

func (*FakeMigrator) MigrateReturns

func (fake *FakeMigrator) MigrateReturns(result1 error)

func (*FakeMigrator) MigrateReturnsOnCall

func (fake *FakeMigrator) MigrateReturnsOnCall(i int, result1 error)

func (*FakeMigrator) SupportedVersion

func (fake *FakeMigrator) SupportedVersion(arg1 lager.Logger) (int, error)

func (*FakeMigrator) SupportedVersionArgsForCall

func (fake *FakeMigrator) SupportedVersionArgsForCall(i int) lager.Logger

func (*FakeMigrator) SupportedVersionCallCount

func (fake *FakeMigrator) SupportedVersionCallCount() int

func (*FakeMigrator) SupportedVersionCalls

func (fake *FakeMigrator) SupportedVersionCalls(stub func(lager.Logger) (int, error))

func (*FakeMigrator) SupportedVersionReturns

func (fake *FakeMigrator) SupportedVersionReturns(result1 int, result2 error)

func (*FakeMigrator) SupportedVersionReturnsOnCall

func (fake *FakeMigrator) SupportedVersionReturnsOnCall(i int, result1 int, result2 error)

func (*FakeMigrator) Up

func (fake *FakeMigrator) Up(arg1 lager.Logger, arg2 *sql.DB) error

func (*FakeMigrator) UpArgsForCall

func (fake *FakeMigrator) UpArgsForCall(i int) (lager.Logger, *sql.DB)

func (*FakeMigrator) UpCallCount

func (fake *FakeMigrator) UpCallCount() int

func (*FakeMigrator) UpCalls

func (fake *FakeMigrator) UpCalls(stub func(lager.Logger, *sql.DB) error)

func (*FakeMigrator) UpReturns

func (fake *FakeMigrator) UpReturns(result1 error)

func (*FakeMigrator) UpReturnsOnCall

func (fake *FakeMigrator) UpReturnsOnCall(i int, result1 error)

type FakeParser

type FakeParser struct {
	ParseFileToMigrationStub func(lager.Logger, string) (voyager.Migration, error)

	ParseMigrationFilenameStub func(lager.Logger, string) (voyager.Migration, error)
	// contains filtered or unexported fields
}

func (*FakeParser) Invocations

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

func (*FakeParser) ParseFileToMigration

func (fake *FakeParser) ParseFileToMigration(arg1 lager.Logger, arg2 string) (voyager.Migration, error)

func (*FakeParser) ParseFileToMigrationArgsForCall

func (fake *FakeParser) ParseFileToMigrationArgsForCall(i int) (lager.Logger, string)

func (*FakeParser) ParseFileToMigrationCallCount

func (fake *FakeParser) ParseFileToMigrationCallCount() int

func (*FakeParser) ParseFileToMigrationCalls

func (fake *FakeParser) ParseFileToMigrationCalls(stub func(lager.Logger, string) (voyager.Migration, error))

func (*FakeParser) ParseFileToMigrationReturns

func (fake *FakeParser) ParseFileToMigrationReturns(result1 voyager.Migration, result2 error)

func (*FakeParser) ParseFileToMigrationReturnsOnCall

func (fake *FakeParser) ParseFileToMigrationReturnsOnCall(i int, result1 voyager.Migration, result2 error)

func (*FakeParser) ParseMigrationFilename

func (fake *FakeParser) ParseMigrationFilename(arg1 lager.Logger, arg2 string) (voyager.Migration, error)

func (*FakeParser) ParseMigrationFilenameArgsForCall

func (fake *FakeParser) ParseMigrationFilenameArgsForCall(i int) (lager.Logger, string)

func (*FakeParser) ParseMigrationFilenameCallCount

func (fake *FakeParser) ParseMigrationFilenameCallCount() int

func (*FakeParser) ParseMigrationFilenameCalls

func (fake *FakeParser) ParseMigrationFilenameCalls(stub func(lager.Logger, string) (voyager.Migration, error))

func (*FakeParser) ParseMigrationFilenameReturns

func (fake *FakeParser) ParseMigrationFilenameReturns(result1 voyager.Migration, result2 error)

func (*FakeParser) ParseMigrationFilenameReturnsOnCall

func (fake *FakeParser) ParseMigrationFilenameReturnsOnCall(i int, result1 voyager.Migration, result2 error)

type FakeSchemaAdapter

type FakeSchemaAdapter struct {
	CurrentVersionStub func(*sql.DB) (int, error)

	MigrateFromOldSchemaStub func(*sql.DB, int) (int, error)

	MigrateToOldSchemaStub func(*sql.DB, int) error
	// contains filtered or unexported fields
}

func (*FakeSchemaAdapter) CurrentVersion

func (fake *FakeSchemaAdapter) CurrentVersion(arg1 *sql.DB) (int, error)

func (*FakeSchemaAdapter) CurrentVersionArgsForCall

func (fake *FakeSchemaAdapter) CurrentVersionArgsForCall(i int) *sql.DB

func (*FakeSchemaAdapter) CurrentVersionCallCount

func (fake *FakeSchemaAdapter) CurrentVersionCallCount() int

func (*FakeSchemaAdapter) CurrentVersionCalls

func (fake *FakeSchemaAdapter) CurrentVersionCalls(stub func(*sql.DB) (int, error))

func (*FakeSchemaAdapter) CurrentVersionReturns

func (fake *FakeSchemaAdapter) CurrentVersionReturns(result1 int, result2 error)

func (*FakeSchemaAdapter) CurrentVersionReturnsOnCall

func (fake *FakeSchemaAdapter) CurrentVersionReturnsOnCall(i int, result1 int, result2 error)

func (*FakeSchemaAdapter) Invocations

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

func (*FakeSchemaAdapter) MigrateFromOldSchema

func (fake *FakeSchemaAdapter) MigrateFromOldSchema(arg1 *sql.DB, arg2 int) (int, error)

func (*FakeSchemaAdapter) MigrateFromOldSchemaArgsForCall

func (fake *FakeSchemaAdapter) MigrateFromOldSchemaArgsForCall(i int) (*sql.DB, int)

func (*FakeSchemaAdapter) MigrateFromOldSchemaCallCount

func (fake *FakeSchemaAdapter) MigrateFromOldSchemaCallCount() int

func (*FakeSchemaAdapter) MigrateFromOldSchemaCalls

func (fake *FakeSchemaAdapter) MigrateFromOldSchemaCalls(stub func(*sql.DB, int) (int, error))

func (*FakeSchemaAdapter) MigrateFromOldSchemaReturns

func (fake *FakeSchemaAdapter) MigrateFromOldSchemaReturns(result1 int, result2 error)

func (*FakeSchemaAdapter) MigrateFromOldSchemaReturnsOnCall

func (fake *FakeSchemaAdapter) MigrateFromOldSchemaReturnsOnCall(i int, result1 int, result2 error)

func (*FakeSchemaAdapter) MigrateToOldSchema

func (fake *FakeSchemaAdapter) MigrateToOldSchema(arg1 *sql.DB, arg2 int) error

func (*FakeSchemaAdapter) MigrateToOldSchemaArgsForCall

func (fake *FakeSchemaAdapter) MigrateToOldSchemaArgsForCall(i int) (*sql.DB, int)

func (*FakeSchemaAdapter) MigrateToOldSchemaCallCount

func (fake *FakeSchemaAdapter) MigrateToOldSchemaCallCount() int

func (*FakeSchemaAdapter) MigrateToOldSchemaCalls

func (fake *FakeSchemaAdapter) MigrateToOldSchemaCalls(stub func(*sql.DB, int) error)

func (*FakeSchemaAdapter) MigrateToOldSchemaReturns

func (fake *FakeSchemaAdapter) MigrateToOldSchemaReturns(result1 error)

func (*FakeSchemaAdapter) MigrateToOldSchemaReturnsOnCall

func (fake *FakeSchemaAdapter) MigrateToOldSchemaReturnsOnCall(i int, result1 error)

type FakeSource

type FakeSource struct {
	AssetStub func(string) ([]byte, error)

	AssetNamesStub func() []string
	// contains filtered or unexported fields
}

func (*FakeSource) Asset

func (fake *FakeSource) Asset(arg1 string) ([]byte, error)

func (*FakeSource) AssetArgsForCall

func (fake *FakeSource) AssetArgsForCall(i int) string

func (*FakeSource) AssetCallCount

func (fake *FakeSource) AssetCallCount() int

func (*FakeSource) AssetCalls

func (fake *FakeSource) AssetCalls(stub func(string) ([]byte, error))

func (*FakeSource) AssetNames

func (fake *FakeSource) AssetNames() []string

func (*FakeSource) AssetNamesCallCount

func (fake *FakeSource) AssetNamesCallCount() int

func (*FakeSource) AssetNamesCalls

func (fake *FakeSource) AssetNamesCalls(stub func() []string)

func (*FakeSource) AssetNamesReturns

func (fake *FakeSource) AssetNamesReturns(result1 []string)

func (*FakeSource) AssetNamesReturnsOnCall

func (fake *FakeSource) AssetNamesReturnsOnCall(i int, result1 []string)

func (*FakeSource) AssetReturns

func (fake *FakeSource) AssetReturns(result1 []byte, result2 error)

func (*FakeSource) AssetReturnsOnCall

func (fake *FakeSource) AssetReturnsOnCall(i int, result1 []byte, result2 error)

func (*FakeSource) Invocations

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

Jump to

Keyboard shortcuts

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