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) EXPECT

func (_m *Backend) EXPECT() *Backend_Expecter

func (*Backend) GetLayer

func (_m *Backend) GetLayer(ctx context.Context, name string) (*model.Layer, error)

GetLayer provides a mock function with given fields: ctx, name

func (*Backend) ListLayers

func (_m *Backend) ListLayers(ctx context.Context) ([]*model.Layer, error)

ListLayers provides a mock function with given fields: ctx

func (*Backend) Location

func (_m *Backend) Location(ctx context.Context) (string, error)

Location provides a mock function with given fields: ctx

func (*Backend) ResolveDependencies

func (_m *Backend) ResolveDependencies(ctx context.Context, layer *model.Layer) ([]*model.Layer, error)

ResolveDependencies provides a mock function with given fields: ctx, layer

func (*Backend) UpdateLayers

func (_m *Backend) UpdateLayers(ctx context.Context, _a1 []*model.Layer) error

UpdateLayers provides a mock function with given fields: ctx, _a1

type Backend_Expecter

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

func (*Backend_Expecter) GetLayer

func (_e *Backend_Expecter) GetLayer(ctx interface{}, name interface{}) *Backend_GetLayer_Call

GetLayer is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*Backend_Expecter) ListLayers

func (_e *Backend_Expecter) ListLayers(ctx interface{}) *Backend_ListLayers_Call

ListLayers is a helper method to define mock.On call

  • ctx context.Context

func (*Backend_Expecter) Location

func (_e *Backend_Expecter) Location(ctx interface{}) *Backend_Location_Call

Location is a helper method to define mock.On call

  • ctx context.Context

func (*Backend_Expecter) ResolveDependencies

func (_e *Backend_Expecter) ResolveDependencies(ctx interface{}, layer interface{}) *Backend_ResolveDependencies_Call

ResolveDependencies is a helper method to define mock.On call

  • ctx context.Context
  • layer *model.Layer

func (*Backend_Expecter) UpdateLayers

func (_e *Backend_Expecter) UpdateLayers(ctx interface{}, _a1 interface{}) *Backend_UpdateLayers_Call

UpdateLayers is a helper method to define mock.On call

  • ctx context.Context
  • _a1 []*model.Layer

type Backend_GetLayer_Call

type Backend_GetLayer_Call struct {
	*mock.Call
}

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

func (*Backend_GetLayer_Call) Return

func (*Backend_GetLayer_Call) Run

func (_c *Backend_GetLayer_Call) Run(run func(ctx context.Context, name string)) *Backend_GetLayer_Call

func (*Backend_GetLayer_Call) RunAndReturn

type Backend_ListLayers_Call

type Backend_ListLayers_Call struct {
	*mock.Call
}

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

func (*Backend_ListLayers_Call) Return

func (*Backend_ListLayers_Call) Run

func (*Backend_ListLayers_Call) RunAndReturn

func (_c *Backend_ListLayers_Call) RunAndReturn(run func(context.Context) ([]*model.Layer, error)) *Backend_ListLayers_Call

type Backend_Location_Call

type Backend_Location_Call struct {
	*mock.Call
}

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

func (*Backend_Location_Call) Return

func (*Backend_Location_Call) Run

func (*Backend_Location_Call) RunAndReturn

func (_c *Backend_Location_Call) RunAndReturn(run func(context.Context) (string, error)) *Backend_Location_Call

type Backend_ResolveDependencies_Call

type Backend_ResolveDependencies_Call struct {
	*mock.Call
}

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

func (*Backend_ResolveDependencies_Call) Return

func (*Backend_ResolveDependencies_Call) Run

func (*Backend_ResolveDependencies_Call) RunAndReturn

type Backend_UpdateLayers_Call

type Backend_UpdateLayers_Call struct {
	*mock.Call
}

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

func (*Backend_UpdateLayers_Call) Return

func (*Backend_UpdateLayers_Call) Run

func (*Backend_UpdateLayers_Call) RunAndReturn

Jump to

Keyboard shortcuts

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