mocks

package
v1.1.47 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ops

type Ops struct {
	mock.Mock
}

Ops is an autogenerated mock type for the Ops type

func NewOps

func NewOps(t interface {
	mock.TestingT
	Cleanup(func())
}) *Ops

NewOps creates a new instance of Ops. 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 (*Ops) EXPECT

func (_m *Ops) EXPECT() *Ops_Expecter

func (*Ops) Logs

func (_m *Ops) Logs() logs.Logs

Logs provides a mock function with given fields:

func (*Ops) Sql

func (_m *Ops) Sql() sql.Sql

Sql provides a mock function with given fields:

func (*Ops) Status

func (_m *Ops) Status() (status.Reader, error)

Status provides a mock function with given fields:

func (*Ops) Sync

func (_m *Ops) Sync() (sync.Sync, error)

Sync provides a mock function with given fields:

type Ops_Expecter

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

func (*Ops_Expecter) Logs

func (_e *Ops_Expecter) Logs() *Ops_Logs_Call

Logs is a helper method to define mock.On call

func (*Ops_Expecter) Sql

func (_e *Ops_Expecter) Sql() *Ops_Sql_Call

Sql is a helper method to define mock.On call

func (*Ops_Expecter) Status

func (_e *Ops_Expecter) Status() *Ops_Status_Call

Status is a helper method to define mock.On call

func (*Ops_Expecter) Sync

func (_e *Ops_Expecter) Sync() *Ops_Sync_Call

Sync is a helper method to define mock.On call

type Ops_Logs_Call

type Ops_Logs_Call struct {
	*mock.Call
}

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

func (*Ops_Logs_Call) Return

func (_c *Ops_Logs_Call) Return(_a0 logs.Logs) *Ops_Logs_Call

func (*Ops_Logs_Call) Run

func (_c *Ops_Logs_Call) Run(run func()) *Ops_Logs_Call

func (*Ops_Logs_Call) RunAndReturn

func (_c *Ops_Logs_Call) RunAndReturn(run func() logs.Logs) *Ops_Logs_Call

type Ops_Sql_Call

type Ops_Sql_Call struct {
	*mock.Call
}

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

func (*Ops_Sql_Call) Return

func (_c *Ops_Sql_Call) Return(_a0 sql.Sql) *Ops_Sql_Call

func (*Ops_Sql_Call) Run

func (_c *Ops_Sql_Call) Run(run func()) *Ops_Sql_Call

func (*Ops_Sql_Call) RunAndReturn

func (_c *Ops_Sql_Call) RunAndReturn(run func() sql.Sql) *Ops_Sql_Call

type Ops_Status_Call

type Ops_Status_Call struct {
	*mock.Call
}

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

func (*Ops_Status_Call) Return

func (_c *Ops_Status_Call) Return(_a0 status.Reader, _a1 error) *Ops_Status_Call

func (*Ops_Status_Call) Run

func (_c *Ops_Status_Call) Run(run func()) *Ops_Status_Call

func (*Ops_Status_Call) RunAndReturn

func (_c *Ops_Status_Call) RunAndReturn(run func() (status.Reader, error)) *Ops_Status_Call

type Ops_Sync_Call

type Ops_Sync_Call struct {
	*mock.Call
}

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

func (*Ops_Sync_Call) Return

func (_c *Ops_Sync_Call) Return(_a0 sync.Sync, _a1 error) *Ops_Sync_Call

func (*Ops_Sync_Call) Run

func (_c *Ops_Sync_Call) Run(run func()) *Ops_Sync_Call

func (*Ops_Sync_Call) RunAndReturn

func (_c *Ops_Sync_Call) RunAndReturn(run func() (sync.Sync, error)) *Ops_Sync_Call

Jump to

Keyboard shortcuts

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