mocks

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 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 DatabaseRepo added in v0.0.6

type DatabaseRepo struct {
	mock.Mock
}

DatabaseRepo is an autogenerated mock type for the DatabaseRepo type

func NewDatabaseRepo added in v0.0.6

func NewDatabaseRepo(t mockConstructorTestingTNewDatabaseRepo) *DatabaseRepo

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

func (*DatabaseRepo) ApplyMigration added in v0.0.6

func (_m *DatabaseRepo) ApplyMigration(migration *entities.SqlMigration) error

ApplyMigration provides a mock function with given fields: migration

func (*DatabaseRepo) CreateMigrationTableIfNotExists added in v0.0.6

func (_m *DatabaseRepo) CreateMigrationTableIfNotExists() error

CreateMigrationTableIfNotExists provides a mock function with given fields:

func (*DatabaseRepo) DeleteMigrationTable added in v0.0.6

func (_m *DatabaseRepo) DeleteMigrationTable() error

DeleteMigrationTable provides a mock function with given fields:

func (*DatabaseRepo) GetLastAppliedMigrationFromDatabase added in v0.0.6

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

GetLastAppliedMigrationFromDatabase provides a mock function with given fields:

func (*DatabaseRepo) GetMigrationEntries added in v0.0.6

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

GetMigrationEntries provides a mock function with given fields:

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) Extention added in v0.2.1

func (_m *FileSystemRepo) Extention() string

Extention provides a mock function with given fields:

func (*FileSystemRepo) FillMigrationFile added in v0.2.1

func (_m *FileSystemRepo) FillMigrationFile(_a0 entities.MigrationType, _a1 string, _a2 string) error

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

func (*FileSystemRepo) GetFilesFromDirectory added in v0.1.1

func (_m *FileSystemRepo) GetFilesFromDirectory(directory string) ([]string, error)

GetFilesFromDirectory provides a mock function with given fields: directory

func (*FileSystemRepo) LoadMigrationsFromFiles added in v0.1.1

func (_m *FileSystemRepo) LoadMigrationsFromFiles(_a0 entities.MigrationType, _a1 []string) (*[]entities.SqlMigration, error)

LoadMigrationsFromFiles provides a mock function with given fields: _a0, _a1

func (*FileSystemRepo) MkAlldirIfnotExists

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

MkAlldirIfnotExists provides a mock function with given fields: paths

func (*FileSystemRepo) RemoveFilesFromDirectories added in v0.0.6

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

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

func (*FileSystemRepo) RootFolder added in v0.2.0

func (_m *FileSystemRepo) RootFolder() string

RootFolder provides a mock function with given fields:

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) DeleteMigrationTable added in v0.0.6

func (_m *MigratorService) DeleteMigrationTable() error

DeleteMigrationTable 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) 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

Jump to

Keyboard shortcuts

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