mockplacement

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPlacement

type MockPlacement struct {
	mock.Mock
}

MockPlacement is an autogenerated mock type for the Placement type

func NewMockPlacement

func NewMockPlacement(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPlacement

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

func (_m *MockPlacement) EXPECT() *MockPlacement_Expecter

func (*MockPlacement) Policy

func (_m *MockPlacement) Policy(_a0 placement.Key) placement.Policy

Policy provides a mock function with given fields: _a0

type MockPlacement_Expecter

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

func (*MockPlacement_Expecter) Policy

func (_e *MockPlacement_Expecter) Policy(_a0 interface{}) *MockPlacement_Policy_Call

Policy is a helper method to define mock.On call

  • _a0 placement.Key

type MockPlacement_Policy_Call

type MockPlacement_Policy_Call struct {
	*mock.Call
}

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

func (*MockPlacement_Policy_Call) Return

func (*MockPlacement_Policy_Call) Run

func (*MockPlacement_Policy_Call) RunAndReturn

Jump to

Keyboard shortcuts

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