mocks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: GPL-3.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 Backend

type Backend struct {
	mock.Mock
}

Backend is an autogenerated mock type for the Backend type

func NewBackend

func NewBackend(t interface {
	mock.TestingT
	Cleanup(func())
}) *Backend

NewBackend creates a new instance of Backend. 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 (*Backend) DeleteState

func (_m *Backend) DeleteState(ctx context.Context, layerName string, stateName string) error

DeleteState provides a mock function with given fields: ctx, layerName, stateName

func (*Backend) EXPECT

func (_m *Backend) EXPECT() *Backend_Expecter

func (*Backend) GetState

func (_m *Backend) GetState(ctx context.Context, layerName string, stateName string) (*layerstate.State, error)

GetState provides a mock function with given fields: ctx, layerName, stateName

func (*Backend) ListStates

func (_m *Backend) ListStates(ctx context.Context) ([]*layerstate.State, error)

ListStates provides a mock function with given fields: ctx

func (*Backend) ListStatesByLayer

func (_m *Backend) ListStatesByLayer(ctx context.Context, layerName string) ([]*layerstate.State, error)

ListStatesByLayer provides a mock function with given fields: ctx, layerName

func (*Backend) SaveState

func (_m *Backend) SaveState(ctx context.Context, state *layerstate.State) error

SaveState provides a mock function with given fields: ctx, state

type Backend_DeleteState_Call

type Backend_DeleteState_Call struct {
	*mock.Call
}

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

func (*Backend_DeleteState_Call) Return

func (*Backend_DeleteState_Call) Run

func (_c *Backend_DeleteState_Call) Run(run func(ctx context.Context, layerName string, stateName string)) *Backend_DeleteState_Call

func (*Backend_DeleteState_Call) RunAndReturn

type Backend_Expecter

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

func (*Backend_Expecter) DeleteState

func (_e *Backend_Expecter) DeleteState(ctx interface{}, layerName interface{}, stateName interface{}) *Backend_DeleteState_Call

DeleteState is a helper method to define mock.On call

  • ctx context.Context
  • layerName string
  • stateName string

func (*Backend_Expecter) GetState

func (_e *Backend_Expecter) GetState(ctx interface{}, layerName interface{}, stateName interface{}) *Backend_GetState_Call

GetState is a helper method to define mock.On call

  • ctx context.Context
  • layerName string
  • stateName string

func (*Backend_Expecter) ListStates

func (_e *Backend_Expecter) ListStates(ctx interface{}) *Backend_ListStates_Call

ListStates is a helper method to define mock.On call

  • ctx context.Context

func (*Backend_Expecter) ListStatesByLayer

func (_e *Backend_Expecter) ListStatesByLayer(ctx interface{}, layerName interface{}) *Backend_ListStatesByLayer_Call

ListStatesByLayer is a helper method to define mock.On call

  • ctx context.Context
  • layerName string

func (*Backend_Expecter) SaveState

func (_e *Backend_Expecter) SaveState(ctx interface{}, state interface{}) *Backend_SaveState_Call

SaveState is a helper method to define mock.On call

  • ctx context.Context
  • state *layerstate.State

type Backend_GetState_Call

type Backend_GetState_Call struct {
	*mock.Call
}

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

func (*Backend_GetState_Call) Return

func (*Backend_GetState_Call) Run

func (_c *Backend_GetState_Call) Run(run func(ctx context.Context, layerName string, stateName string)) *Backend_GetState_Call

func (*Backend_GetState_Call) RunAndReturn

type Backend_ListStatesByLayer_Call

type Backend_ListStatesByLayer_Call struct {
	*mock.Call
}

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

func (*Backend_ListStatesByLayer_Call) Return

func (*Backend_ListStatesByLayer_Call) Run

func (*Backend_ListStatesByLayer_Call) RunAndReturn

type Backend_ListStates_Call

type Backend_ListStates_Call struct {
	*mock.Call
}

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

func (*Backend_ListStates_Call) Return

func (*Backend_ListStates_Call) Run

func (*Backend_ListStates_Call) RunAndReturn

type Backend_SaveState_Call

type Backend_SaveState_Call struct {
	*mock.Call
}

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

func (*Backend_SaveState_Call) Return

func (*Backend_SaveState_Call) Run

func (*Backend_SaveState_Call) RunAndReturn

Jump to

Keyboard shortcuts

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