fakes

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MigrateAdapter

type MigrateAdapter struct {
	ExecMaxStub func(db migrations.MigrationDb, dialect string, m migrate.MigrationSource, dir migrate.MigrationDirection, maxNumMigrations int) (int, error)
	// contains filtered or unexported fields
}

func (*MigrateAdapter) ExecMax

func (fake *MigrateAdapter) ExecMax(db migrations.MigrationDb, dialect string, m migrate.MigrationSource, dir migrate.MigrationDirection, maxNumMigrations int) (int, error)

func (*MigrateAdapter) ExecMaxArgsForCall

func (*MigrateAdapter) ExecMaxCallCount

func (fake *MigrateAdapter) ExecMaxCallCount() int

func (*MigrateAdapter) ExecMaxReturns

func (fake *MigrateAdapter) ExecMaxReturns(result1 int, result2 error)

func (*MigrateAdapter) ExecMaxReturnsOnCall

func (fake *MigrateAdapter) ExecMaxReturnsOnCall(i int, result1 int, result2 error)

func (*MigrateAdapter) Invocations

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

type MigrationDb

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

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

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

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

func (*MigrationDb) DriverName

func (fake *MigrationDb) DriverName() string

func (*MigrationDb) DriverNameCallCount

func (fake *MigrationDb) DriverNameCallCount() int

func (*MigrationDb) DriverNameReturns

func (fake *MigrationDb) DriverNameReturns(result1 string)

func (*MigrationDb) DriverNameReturnsOnCall

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

func (*MigrationDb) Exec

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

func (*MigrationDb) ExecArgsForCall

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

func (*MigrationDb) ExecCallCount

func (fake *MigrationDb) ExecCallCount() int

func (*MigrationDb) ExecReturns

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

func (*MigrationDb) ExecReturnsOnCall

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

func (*MigrationDb) Invocations

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

func (*MigrationDb) Query

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

func (*MigrationDb) QueryArgsForCall

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

func (*MigrationDb) QueryCallCount

func (fake *MigrationDb) QueryCallCount() int

func (*MigrationDb) QueryReturns

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

func (*MigrationDb) QueryReturnsOnCall

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

func (*MigrationDb) QueryRow

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

func (*MigrationDb) QueryRowArgsForCall

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

func (*MigrationDb) QueryRowCallCount

func (fake *MigrationDb) QueryRowCallCount() int

func (*MigrationDb) QueryRowReturns

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

func (*MigrationDb) QueryRowReturnsOnCall

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

Jump to

Keyboard shortcuts

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