mocks

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 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 FileSystemRepo

type FileSystemRepo struct {
	mock.Mock
}

FileSystemRepo is an autogenerated mock type for the FileSystemRepo type

func NewFileSystemRepo

func NewFileSystemRepo(t mockConstructorTestingTNewFileSystemRepo) *FileSystemRepo

NewFileSystemRepo creates a new instance of FileSystemRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FileSystemRepo) CreateFilesInDirectories

func (_m *FileSystemRepo) CreateFilesInDirectories(directoryList []string, fileNames []string) error

CreateFilesInDirectories provides a mock function with given fields: directoryList, fileNames

func (*FileSystemRepo) GetMigrationFilesFromDirectory

func (_m *FileSystemRepo) GetMigrationFilesFromDirectory(directory string, database int) []string

GetMigrationFilesFromDirectory provides a mock function with given fields: directory, database

func (*FileSystemRepo) GetMigrationsFromFiles

func (_m *FileSystemRepo) GetMigrationsFromFiles(_a0 string, _a1 []string, _a2 string) (*[]entities.PGMigration, error)

GetMigrationsFromFiles provides a mock function with given fields: _a0, _a1, _a2

func (*FileSystemRepo) MkAlldirIfnotExists

func (_m *FileSystemRepo) MkAlldirIfnotExists(paths []string) error

MkAlldirIfnotExists provides a mock function with given fields: paths

type MigratorService

type MigratorService struct {
	mock.Mock
}

MigratorService is an autogenerated mock type for the MigratorService type

func NewMigratorService

func NewMigratorService(t mockConstructorTestingTNewMigratorService) *MigratorService

NewMigratorService creates a new instance of MigratorService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MigratorService) CleanMigrationTable

func (_m *MigratorService) CleanMigrationTable() error

CleanMigrationTable provides a mock function with given fields:

func (*MigratorService) GetMigrationEntries

func (_m *MigratorService) GetMigrationEntries() (*[]entities.MigrationEntry, error)

GetMigrationEntries provides a mock function with given fields:

func (*MigratorService) InitializeMigrationTable

func (_m *MigratorService) InitializeMigrationTable() error

InitializeMigrationTable provides a mock function with given fields:

func (*MigratorService) MigrateDown

func (_m *MigratorService) MigrateDown(_a0 int) error

MigrateDown provides a mock function with given fields: _a0

func (*MigratorService) MigrateUp

func (_m *MigratorService) MigrateUp(_a0 int) error

MigrateUp provides a mock function with given fields: _a0

type PGRepo

type PGRepo struct {
	mock.Mock
}

PGRepo is an autogenerated mock type for the PGRepo type

func NewPGRepo

func NewPGRepo(t mockConstructorTestingTNewPGRepo) *PGRepo

NewPGRepo creates a new instance of PGRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PGRepo) ApplyMigration

func (_m *PGRepo) ApplyMigration(migration *entities.PGMigration) error

ApplyMigration provides a mock function with given fields: migration

func (*PGRepo) CleanMigrationTable

func (_m *PGRepo) CleanMigrationTable() error

CleanMigrationTable provides a mock function with given fields:

func (*PGRepo) CreateMigrationTableIfNotExists

func (_m *PGRepo) CreateMigrationTableIfNotExists() error

CreateMigrationTableIfNotExists provides a mock function with given fields:

func (*PGRepo) GetLastAppliedMigrationFromDatabase

func (_m *PGRepo) GetLastAppliedMigrationFromDatabase() (*entities.MigrationEntry, error)

GetLastAppliedMigrationFromDatabase provides a mock function with given fields:

func (*PGRepo) GetMigrationEntries

func (_m *PGRepo) GetMigrationEntries() (*[]entities.MigrationEntry, error)

GetMigrationEntries 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