mocks

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgumentParser added in v1.1.0

type ArgumentParser struct {
	mock.Mock
}

ArgumentParser is an autogenerated mock type for the ArgumentParser type

func (*ArgumentParser) OptionString added in v1.1.0

func (_m *ArgumentParser) OptionString(name string, value string) *string

OptionString provides a mock function with given fields: name, value

func (*ArgumentParser) Parse added in v1.1.0

func (_m *ArgumentParser) Parse() error

Parse provides a mock function with given fields:

func (*ArgumentParser) ParseArguments added in v1.4.0

func (_m *ArgumentParser) ParseArguments(args []string) error

ParseArguments provides a mock function with given fields: args

func (*ArgumentParser) PositionalArguments added in v1.1.0

func (_m *ArgumentParser) PositionalArguments() []string

PositionalArguments provides a mock function with given fields:

type DB

type DB struct {
	mock.Mock
}

DB is an autogenerated mock type for the DB type

func (*DB) Exec

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

Exec provides a mock function with given fields: query, args

func (*DB) Ping

func (_m *DB) Ping() error

Ping provides a mock function with given fields:

func (*DB) Query

func (_m *DB) Query(query string, args ...interface{}) (adapters.DBRows, error)

Query provides a mock function with given fields: query, args

type DBRepository

type DBRepository struct {
	mock.Mock
}

DBRepository is an autogenerated mock type for the DBRepository type

func (*DBRepository) CreateMigrationsTableIfNeeded

func (_m *DBRepository) CreateMigrationsTableIfNeeded() error

CreateMigrationsTableIfNeeded provides a mock function with given fields:

func (*DBRepository) GetAlreadyRunMigrationFilePaths

func (_m *DBRepository) GetAlreadyRunMigrationFilePaths(migrationsDirectoryAbsolutePath string) ([]string, error)

GetAlreadyRunMigrationFilePaths provides a mock function with given fields: migrationsDirectoryAbsolutePath

func (*DBRepository) Ping

func (_m *DBRepository) Ping() error

Ping provides a mock function with given fields:

func (*DBRepository) RegisterRunMigration

func (_m *DBRepository) RegisterRunMigration(migrationFileName string) error

RegisterRunMigration provides a mock function with given fields: migrationFileName

func (*DBRepository) RunMigrationQuery

func (_m *DBRepository) RunMigrationQuery(query string) error

RunMigrationQuery provides a mock function with given fields: query

type DBRows

type DBRows struct {
	mock.Mock
}

DBRows is an autogenerated mock type for the DBRows type

func (*DBRows) Close

func (_m *DBRows) Close() error

Close provides a mock function with given fields:

func (*DBRows) Next

func (_m *DBRows) Next() bool

Next provides a mock function with given fields:

func (*DBRows) Scan

func (_m *DBRows) Scan(dest ...interface{}) error

Scan provides a mock function with given fields: dest

type Display added in v1.4.0

type Display struct {
	mock.Mock
}

Display is an autogenerated mock type for the Display type

func (*Display) DisplayError added in v1.4.0

func (_m *Display) DisplayError(err error)

DisplayError provides a mock function with given fields: err

func (*Display) DisplayErrorWithMessage added in v1.4.0

func (_m *Display) DisplayErrorWithMessage(err error, message string)

DisplayErrorWithMessage provides a mock function with given fields: err, message

func (*Display) DisplayGeneralError added in v1.4.0

func (_m *Display) DisplayGeneralError(err error)

DisplayGeneralError provides a mock function with given fields: err

func (*Display) DisplayHelp added in v1.4.0

func (_m *Display) DisplayHelp()

DisplayHelp provides a mock function with given fields:

func (*Display) DisplayInfo added in v1.5.0

func (_m *Display) DisplayInfo(message string)

DisplayInfo provides a mock function with given fields: message

func (*Display) DisplayRunMigrations added in v1.4.0

func (_m *Display) DisplayRunMigrations(migrations models.Collection)

DisplayRunMigrations provides a mock function with given fields: migrations

func (*Display) DisplaySetupError added in v1.4.0

func (_m *Display) DisplaySetupError(err error)

DisplaySetupError provides a mock function with given fields: err

type Fetcher

type Fetcher struct {
	mock.Mock
}

Fetcher is an autogenerated mock type for the Fetcher type

func (*Fetcher) GetMigrations

func (_m *Fetcher) GetMigrations(migrationsDirectoryAbsolutePath string) (models.Collection, error)

GetMigrations provides a mock function with given fields: migrationsDirectoryAbsolutePath

type File

type File struct {
	mock.Mock
}

File is an autogenerated mock type for the File type

func (*File) IsDir

func (_m *File) IsDir() bool

IsDir provides a mock function with given fields:

func (*File) ModTime

func (_m *File) ModTime() time.Time

ModTime provides a mock function with given fields:

func (*File) Mode

func (_m *File) Mode() fs.FileMode

Mode provides a mock function with given fields:

func (*File) Name

func (_m *File) Name() string

Name provides a mock function with given fields:

func (*File) Size

func (_m *File) Size() int64

Size provides a mock function with given fields:

func (*File) Sys

func (_m *File) Sys() interface{}

Sys provides a mock function with given fields:

type FileRepository

type FileRepository struct {
	mock.Mock
}

FileRepository is an autogenerated mock type for the FileRepository type

func (*FileRepository) CreateMigration added in v1.5.0

func (_m *FileRepository) CreateMigration(migrationAbsolutePath string, query string) error

CreateMigration provides a mock function with given fields: migrationAbsolutePath, query

func (*FileRepository) GetMigrationFilePaths

func (_m *FileRepository) GetMigrationFilePaths(migrationsDirectoryAbsolutePath string) ([]string, error)

GetMigrationFilePaths provides a mock function with given fields: migrationsDirectoryAbsolutePath

func (*FileRepository) GetMigrationQuery

func (_m *FileRepository) GetMigrationQuery(migrationAbsolutePath string) (string, error)

GetMigrationQuery provides a mock function with given fields: migrationAbsolutePath

type FileSystem

type FileSystem struct {
	mock.Mock
}

FileSystem is an autogenerated mock type for the FileSystem type

func (*FileSystem) ReadDir

func (_m *FileSystem) ReadDir(dirname string) ([]fs.FileInfo, error)

ReadDir provides a mock function with given fields: dirname

func (*FileSystem) ReadFile

func (_m *FileSystem) ReadFile(filename string) ([]byte, error)

ReadFile provides a mock function with given fields: filename

func (*FileSystem) WriteFile added in v1.5.0

func (_m *FileSystem) WriteFile(filename string, data []byte, perm fs.FileMode) error

WriteFile provides a mock function with given fields: filename, data, perm

Jump to

Keyboard shortcuts

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