testing

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.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 FakePodDeletionSafetyProvider

type FakePodDeletionSafetyProvider struct {
	HasRunning bool
}

FakePodDeletionSafetyProvider is a fake PodDeletionSafetyProvider for test.

func (*FakePodDeletionSafetyProvider) PodCouldHaveRunningContainers added in v1.22.9

func (f *FakePodDeletionSafetyProvider) PodCouldHaveRunningContainers(pod *v1.Pod) bool

type MockPodStatusProvider added in v1.22.9

type MockPodStatusProvider struct {
	mock.Mock
}

MockPodStatusProvider is an autogenerated mock type for the PodStatusProvider type

func NewMockPodStatusProvider added in v1.22.9

func NewMockPodStatusProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPodStatusProvider

NewMockPodStatusProvider creates a new instance of MockPodStatusProvider. 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 (*MockPodStatusProvider) EXPECT added in v1.22.9

func (*MockPodStatusProvider) GetPodStatus added in v1.22.9

func (_m *MockPodStatusProvider) GetPodStatus(uid types.UID) (v1.PodStatus, bool)

GetPodStatus provides a mock function with given fields: uid

type MockPodStatusProvider_Expecter added in v1.31.0

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

func (*MockPodStatusProvider_Expecter) GetPodStatus added in v1.31.0

GetPodStatus is a helper method to define mock.On call

  • uid types.UID

type MockPodStatusProvider_GetPodStatus_Call added in v1.31.0

type MockPodStatusProvider_GetPodStatus_Call struct {
	*mock.Call
}

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

func (*MockPodStatusProvider_GetPodStatus_Call) Return added in v1.31.0

func (*MockPodStatusProvider_GetPodStatus_Call) Run added in v1.31.0

func (*MockPodStatusProvider_GetPodStatus_Call) RunAndReturn added in v1.31.0

Jump to

Keyboard shortcuts

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