dbmigratemocks

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Driver) Close

func (_m *Driver) Close() error

Close provides a mock function with no fields

func (*Driver) Drop

func (_m *Driver) Drop() error

Drop provides a mock function with no fields

func (*Driver) Lock

func (_m *Driver) Lock() error

Lock provides a mock function with no 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 no fields

func (*Driver) Version

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

Version provides a mock function with no fields

Jump to

Keyboard shortcuts

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