dbmigratemocks

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	mock.Mock
}

Driver is an autogenerated mock type for the Driver type

func NewDriver

func NewDriver(t mockConstructorTestingTNewDriver) *Driver

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

func (*Driver) Close

func (_m *Driver) Close() error

Close provides a mock function with given fields:

func (*Driver) Drop

func (_m *Driver) Drop() error

Drop provides a mock function with given fields:

func (*Driver) Lock

func (_m *Driver) Lock() error

Lock provides a mock function with given fields:

func (*Driver) Open

func (_m *Driver) Open(url string) (database.Driver, error)

Open provides a mock function with given fields: url

func (*Driver) Run

func (_m *Driver) Run(migration io.Reader) error

Run provides a mock function with given fields: migration

func (*Driver) SetVersion

func (_m *Driver) SetVersion(version int, dirty bool) error

SetVersion provides a mock function with given fields: version, dirty

func (*Driver) Unlock

func (_m *Driver) Unlock() error

Unlock provides a mock function with given fields:

func (*Driver) Version

func (_m *Driver) Version() (int, bool, error)

Version 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