fakes

package
v0.0.0-...-dd9aec0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 5 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 DatabaseMigrator

type DatabaseMigrator struct {
	MigrateStub func() (int, error)
	// contains filtered or unexported fields
}

func (*DatabaseMigrator) Invocations

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

func (*DatabaseMigrator) Migrate

func (fake *DatabaseMigrator) Migrate() (int, error)

func (*DatabaseMigrator) MigrateCallCount

func (fake *DatabaseMigrator) MigrateCallCount() int

func (*DatabaseMigrator) MigrateReturns

func (fake *DatabaseMigrator) MigrateReturns(result1 int, result2 error)

func (*DatabaseMigrator) MigrateReturnsOnCall

func (fake *DatabaseMigrator) MigrateReturnsOnCall(i int, result1 int, result2 error)

type Db

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

	RebindStub func(query string) string

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

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

	DriverNameStub func() string

	RawConnectionStub func() *sqlx.DB
	// contains filtered or unexported fields
}

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

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

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

func (*Db) Invocations

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

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

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

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

func (*Db) RawConnection

func (fake *Db) RawConnection() *sqlx.DB

func (*Db) RawConnectionCallCount

func (fake *Db) RawConnectionCallCount() int

func (*Db) RawConnectionReturns

func (fake *Db) RawConnectionReturns(result1 *sqlx.DB)

func (*Db) RawConnectionReturnsOnCall

func (fake *Db) RawConnectionReturnsOnCall(i int, result1 *sqlx.DB)

func (*Db) Rebind

func (fake *Db) Rebind(query string) string

func (*Db) RebindArgsForCall

func (fake *Db) RebindArgsForCall(i int) string

func (*Db) RebindCallCount

func (fake *Db) RebindCallCount() int

func (*Db) RebindReturns

func (fake *Db) RebindReturns(result1 string)

func (*Db) RebindReturnsOnCall

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

type MigrateAdapter

type MigrateAdapter struct {
	ExecStub func(db database.Db, dialect string, m migrate.MigrationSource, dir migrate.MigrationDirection) (int, error)
	// contains filtered or unexported fields
}

func (*MigrateAdapter) Exec

func (fake *MigrateAdapter) Exec(db database.Db, dialect string, m migrate.MigrationSource, dir migrate.MigrationDirection) (int, error)

func (*MigrateAdapter) ExecArgsForCall

func (fake *MigrateAdapter) ExecArgsForCall(i int) (database.Db, string, migrate.MigrationSource, migrate.MigrationDirection)

func (*MigrateAdapter) ExecCallCount

func (fake *MigrateAdapter) ExecCallCount() int

func (*MigrateAdapter) ExecReturns

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

func (*MigrateAdapter) ExecReturnsOnCall

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

func (*MigrateAdapter) Invocations

func (fake *MigrateAdapter) 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

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

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

Jump to

Keyboard shortcuts

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