mocks

package
v0.0.0-...-d389d3b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

type Migrator struct {
	mock.Mock
}

Migrator is an autogenerated mock type for the Migrator type

func NewMigrator

func NewMigrator(t mockConstructorTestingTNewMigrator) *Migrator

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

func (*Migrator) Create

func (_m *Migrator) Create(filename string) error

Create provides a mock function with given fields: filename

func (*Migrator) Down

func (_m *Migrator) Down() error

Down provides a mock function with given fields:

func (*Migrator) EXPECT

func (_m *Migrator) EXPECT() *Migrator_Expecter

func (*Migrator) Fix

func (_m *Migrator) Fix() error

Fix provides a mock function with given fields:

func (*Migrator) Up

func (_m *Migrator) Up() error

Up provides a mock function with given fields:

type Migrator_Create_Call

type Migrator_Create_Call struct {
	*mock.Call
}

Migrator_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*Migrator_Create_Call) Return

func (*Migrator_Create_Call) Run

func (_c *Migrator_Create_Call) Run(run func(filename string)) *Migrator_Create_Call

type Migrator_Down_Call

type Migrator_Down_Call struct {
	*mock.Call
}

Migrator_Down_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Down'

func (*Migrator_Down_Call) Return

func (_c *Migrator_Down_Call) Return(_a0 error) *Migrator_Down_Call

func (*Migrator_Down_Call) Run

func (_c *Migrator_Down_Call) Run(run func()) *Migrator_Down_Call

type Migrator_Expecter

type Migrator_Expecter struct {
	// contains filtered or unexported fields
}

func (*Migrator_Expecter) Create

func (_e *Migrator_Expecter) Create(filename interface{}) *Migrator_Create_Call

Create is a helper method to define mock.On call

  • filename string

func (*Migrator_Expecter) Down

Down is a helper method to define mock.On call

func (*Migrator_Expecter) Fix

Fix is a helper method to define mock.On call

func (*Migrator_Expecter) Up

Up is a helper method to define mock.On call

type Migrator_Fix_Call

type Migrator_Fix_Call struct {
	*mock.Call
}

Migrator_Fix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fix'

func (*Migrator_Fix_Call) Return

func (_c *Migrator_Fix_Call) Return(_a0 error) *Migrator_Fix_Call

func (*Migrator_Fix_Call) Run

func (_c *Migrator_Fix_Call) Run(run func()) *Migrator_Fix_Call

type Migrator_Up_Call

type Migrator_Up_Call struct {
	*mock.Call
}

Migrator_Up_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Up'

func (*Migrator_Up_Call) Return

func (_c *Migrator_Up_Call) Return(_a0 error) *Migrator_Up_Call

func (*Migrator_Up_Call) Run

func (_c *Migrator_Up_Call) Run(run func()) *Migrator_Up_Call

Jump to

Keyboard shortcuts

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