mocks

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReader

type FileReader struct {
	mock.Mock
}

FileReader is an autogenerated mock type for the FileReader type

func (*FileReader) ReadDirs

func (_m *FileReader) ReadDirs(root string) ([]string, error)

ReadDirs provides a mock function with given fields: root

func (*FileReader) ReadFileAsString

func (_m *FileReader) ReadFileAsString(path string) (string, error)

ReadFileAsString provides a mock function with given fields: path

func (*FileReader) ReadFilesWithExtension

func (_m *FileReader) ReadFilesWithExtension(root string, extension string) ([]string, error)

ReadFilesWithExtension provides a mock function with given fields: root, extension

type MigrationSource

type MigrationSource struct {
	mock.Mock
}

MigrationSource is an autogenerated mock type for the MigrationSource type

func (*MigrationSource) GetMigrationDownFile

func (_m *MigrationSource) GetMigrationDownFile(schema string, version int) (string, string, error)

GetMigrationDownFile provides a mock function with given fields: schema, version

func (*MigrationSource) GetMigrationUpFile

func (_m *MigrationSource) GetMigrationUpFile(schema string, version int) (string, string, error)

GetMigrationUpFile provides a mock function with given fields: schema, version

func (*MigrationSource) GetSchemaList

func (_m *MigrationSource) GetSchemaList() ([]string, error)

GetSchemaList provides a mock function with given fields:

func (*MigrationSource) GetSortedVersions

func (_m *MigrationSource) GetSortedVersions(schema string) ([]int, error)

GetSortedVersions provides a mock function with given fields: schema

Jump to

Keyboard shortcuts

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