testing

package
v1.23.15 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package testing is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakePodDeletionSafetyProvider

type FakePodDeletionSafetyProvider struct {
	Reclaimed  bool
	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

func (*FakePodDeletionSafetyProvider) PodResourcesAreReclaimed added in v1.7.0

func (f *FakePodDeletionSafetyProvider) PodResourcesAreReclaimed(pod *v1.Pod, status v1.PodStatus) bool

type MockManager added in v1.22.9

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

MockManager is a mock of Manager interface

func NewMockManager added in v1.22.9

func NewMockManager(ctrl *gomock.Controller) *MockManager

NewMockManager creates a new mock instance

func (*MockManager) EXPECT added in v1.22.9

func (m *MockManager) EXPECT() *MockManagerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockManager) GetPodStatus added in v1.22.9

func (m *MockManager) GetPodStatus(uid types.UID) (v1.PodStatus, bool)

GetPodStatus mocks base method

func (*MockManager) RemoveOrphanedStatuses added in v1.23.0

func (m *MockManager) RemoveOrphanedStatuses(podUIDs map[types.UID]bool)

RemoveOrphanedStatuses mocks base method

func (*MockManager) SetContainerReadiness added in v1.23.0

func (m *MockManager) SetContainerReadiness(podUID types.UID, containerID container.ContainerID, ready bool)

SetContainerReadiness mocks base method

func (*MockManager) SetContainerStartup added in v1.23.0

func (m *MockManager) SetContainerStartup(podUID types.UID, containerID container.ContainerID, started bool)

SetContainerStartup mocks base method

func (*MockManager) SetPodStatus added in v1.22.9

func (m *MockManager) SetPodStatus(pod *v1.Pod, status v1.PodStatus)

SetPodStatus mocks base method

func (*MockManager) Start added in v1.22.9

func (m *MockManager) Start()

Start mocks base method

func (*MockManager) TerminatePod added in v1.23.0

func (m *MockManager) TerminatePod(pod *v1.Pod)

TerminatePod mocks base method

type MockManagerMockRecorder added in v1.22.9

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

MockManagerMockRecorder is the mock recorder for MockManager

func (*MockManagerMockRecorder) GetPodStatus added in v1.22.9

func (mr *MockManagerMockRecorder) GetPodStatus(uid interface{}) *gomock.Call

GetPodStatus indicates an expected call of GetPodStatus

func (*MockManagerMockRecorder) RemoveOrphanedStatuses added in v1.23.0

func (mr *MockManagerMockRecorder) RemoveOrphanedStatuses(podUIDs interface{}) *gomock.Call

RemoveOrphanedStatuses indicates an expected call of RemoveOrphanedStatuses

func (*MockManagerMockRecorder) SetContainerReadiness added in v1.23.0

func (mr *MockManagerMockRecorder) SetContainerReadiness(podUID, containerID, ready interface{}) *gomock.Call

SetContainerReadiness indicates an expected call of SetContainerReadiness

func (*MockManagerMockRecorder) SetContainerStartup added in v1.23.0

func (mr *MockManagerMockRecorder) SetContainerStartup(podUID, containerID, started interface{}) *gomock.Call

SetContainerStartup indicates an expected call of SetContainerStartup

func (*MockManagerMockRecorder) SetPodStatus added in v1.23.0

func (mr *MockManagerMockRecorder) SetPodStatus(pod, status interface{}) *gomock.Call

SetPodStatus indicates an expected call of SetPodStatus

func (*MockManagerMockRecorder) Start added in v1.22.9

func (mr *MockManagerMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start

func (*MockManagerMockRecorder) TerminatePod added in v1.23.0

func (mr *MockManagerMockRecorder) TerminatePod(pod interface{}) *gomock.Call

TerminatePod indicates an expected call of TerminatePod

type MockPodDeletionSafetyProvider added in v1.22.9

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

MockPodDeletionSafetyProvider is a mock of PodDeletionSafetyProvider interface

func NewMockPodDeletionSafetyProvider added in v1.22.9

func NewMockPodDeletionSafetyProvider(ctrl *gomock.Controller) *MockPodDeletionSafetyProvider

NewMockPodDeletionSafetyProvider creates a new mock instance

func (*MockPodDeletionSafetyProvider) EXPECT added in v1.22.9

EXPECT returns an object that allows the caller to indicate expected use

func (*MockPodDeletionSafetyProvider) PodCouldHaveRunningContainers added in v1.22.9

func (m *MockPodDeletionSafetyProvider) PodCouldHaveRunningContainers(pod *v1.Pod) bool

PodCouldHaveRunningContainers mocks base method

func (*MockPodDeletionSafetyProvider) PodResourcesAreReclaimed added in v1.22.9

func (m *MockPodDeletionSafetyProvider) PodResourcesAreReclaimed(pod *v1.Pod, status v1.PodStatus) bool

PodResourcesAreReclaimed mocks base method

type MockPodDeletionSafetyProviderMockRecorder added in v1.22.9

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

MockPodDeletionSafetyProviderMockRecorder is the mock recorder for MockPodDeletionSafetyProvider

func (*MockPodDeletionSafetyProviderMockRecorder) PodCouldHaveRunningContainers added in v1.22.9

func (mr *MockPodDeletionSafetyProviderMockRecorder) PodCouldHaveRunningContainers(pod interface{}) *gomock.Call

PodCouldHaveRunningContainers indicates an expected call of PodCouldHaveRunningContainers

func (*MockPodDeletionSafetyProviderMockRecorder) PodResourcesAreReclaimed added in v1.22.9

func (mr *MockPodDeletionSafetyProviderMockRecorder) PodResourcesAreReclaimed(pod, status interface{}) *gomock.Call

PodResourcesAreReclaimed indicates an expected call of PodResourcesAreReclaimed

type MockPodStatusProvider added in v1.22.9

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

MockPodStatusProvider is a mock of PodStatusProvider interface

func NewMockPodStatusProvider added in v1.22.9

func NewMockPodStatusProvider(ctrl *gomock.Controller) *MockPodStatusProvider

NewMockPodStatusProvider creates a new mock instance

func (*MockPodStatusProvider) EXPECT added in v1.22.9

EXPECT returns an object that allows the caller to indicate expected use

func (*MockPodStatusProvider) GetPodStatus added in v1.22.9

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

GetPodStatus mocks base method

type MockPodStatusProviderMockRecorder added in v1.22.9

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

MockPodStatusProviderMockRecorder is the mock recorder for MockPodStatusProvider

func (*MockPodStatusProviderMockRecorder) GetPodStatus added in v1.22.9

func (mr *MockPodStatusProviderMockRecorder) GetPodStatus(uid interface{}) *gomock.Call

GetPodStatus indicates an expected call of GetPodStatus

Jump to

Keyboard shortcuts

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