mocks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MigrationCRUD

type MigrationCRUD struct {
	mock.Mock
}

MigrationCRUD is an autogenerated mock type for the MigrationCRUD type

func (*MigrationCRUD) CreateMigration

func (_m *MigrationCRUD) CreateMigration(timestamp string) error

CreateMigration provides a mock function with given fields: timestamp

func (*MigrationCRUD) DeleteMigrationByTimestamp

func (_m *MigrationCRUD) DeleteMigrationByTimestamp(timestamp string) error

DeleteMigrationByTimestamp provides a mock function with given fields: timestamp

func (*MigrationCRUD) GetLatestTimestamp

func (_m *MigrationCRUD) GetLatestTimestamp() (string, bool, error)

GetLatestTimestamp provides a mock function with given fields:

func (*MigrationCRUD) Setup added in v0.3.0

func (_m *MigrationCRUD) Setup() error

Setup provides a mock function with given fields:

type MigrationRepository

type MigrationRepository struct {
	mock.Mock
}

MigrationRepository is an autogenerated mock type for the MigrationRepository type

func (*MigrationRepository) GetMigrations

func (_m *MigrationRepository) GetMigrations() []migrationrunner.Migration

GetMigrations provides a mock function with given fields:

type Migrator added in v1.1.0

type Migrator struct {
	mock.Mock
}

Migrator is an autogenerated mock type for the Migrator type

func (*Migrator) Down added in v1.1.0

func (_m *Migrator) Down() error

Down provides a mock function with given fields:

func (*Migrator) Up added in v1.1.0

func (_m *Migrator) Up() error

Up provides a mock function with given fields:

Jump to

Keyboard shortcuts

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