testing

package
v1.29.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 6 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 {
	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 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) GetContainerResourceAllocation added in v1.27.0

func (m *MockManager) GetContainerResourceAllocation(podUID, containerName string) (v1.ResourceList, bool)

GetContainerResourceAllocation mocks base method.

func (*MockManager) GetPodResizeStatus added in v1.27.0

func (m *MockManager) GetPodResizeStatus(podUID string) (v1.PodResizeStatus, bool)

GetPodResizeStatus mocks base method.

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) SetPodAllocation added in v1.27.0

func (m *MockManager) SetPodAllocation(pod *v1.Pod) error

SetPodAllocation mocks base method.

func (*MockManager) SetPodResizeStatus added in v1.27.0

func (m *MockManager) SetPodResizeStatus(podUID types.UID, resize v1.PodResizeStatus) error

SetPodResizeStatus 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) GetContainerResourceAllocation added in v1.27.0

func (mr *MockManagerMockRecorder) GetContainerResourceAllocation(podUID, containerName interface{}) *gomock.Call

GetContainerResourceAllocation indicates an expected call of GetContainerResourceAllocation.

func (*MockManagerMockRecorder) GetPodResizeStatus added in v1.27.0

func (mr *MockManagerMockRecorder) GetPodResizeStatus(podUID interface{}) *gomock.Call

GetPodResizeStatus indicates an expected call of GetPodResizeStatus.

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) SetPodAllocation added in v1.27.0

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

SetPodAllocation indicates an expected call of SetPodAllocation.

func (*MockManagerMockRecorder) SetPodResizeStatus added in v1.27.0

func (mr *MockManagerMockRecorder) SetPodResizeStatus(podUID, resize interface{}) *gomock.Call

SetPodResizeStatus indicates an expected call of SetPodResizeStatus.

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.

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.

type MockPodManager added in v1.28.0

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

MockPodManager is a mock of PodManager interface.

func NewMockPodManager added in v1.28.0

func NewMockPodManager(ctrl *gomock.Controller) *MockPodManager

NewMockPodManager creates a new mock instance.

func (*MockPodManager) EXPECT added in v1.28.0

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

func (*MockPodManager) GetMirrorPodByPod added in v1.28.0

func (m *MockPodManager) GetMirrorPodByPod(arg0 *v1.Pod) (*v1.Pod, bool)

GetMirrorPodByPod mocks base method.

func (*MockPodManager) GetPodByUID added in v1.28.0

func (m *MockPodManager) GetPodByUID(arg0 types.UID) (*v1.Pod, bool)

GetPodByUID mocks base method.

func (*MockPodManager) GetUIDTranslations added in v1.28.0

GetUIDTranslations mocks base method.

func (*MockPodManager) TranslatePodUID added in v1.28.0

func (m *MockPodManager) TranslatePodUID(uid types.UID) types0.ResolvedPodUID

TranslatePodUID mocks base method.

type MockPodManagerMockRecorder added in v1.28.0

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

MockPodManagerMockRecorder is the mock recorder for MockPodManager.

func (*MockPodManagerMockRecorder) GetMirrorPodByPod added in v1.28.0

func (mr *MockPodManagerMockRecorder) GetMirrorPodByPod(arg0 interface{}) *gomock.Call

GetMirrorPodByPod indicates an expected call of GetMirrorPodByPod.

func (*MockPodManagerMockRecorder) GetPodByUID added in v1.28.0

func (mr *MockPodManagerMockRecorder) GetPodByUID(arg0 interface{}) *gomock.Call

GetPodByUID indicates an expected call of GetPodByUID.

func (*MockPodManagerMockRecorder) GetUIDTranslations added in v1.28.0

func (mr *MockPodManagerMockRecorder) GetUIDTranslations() *gomock.Call

GetUIDTranslations indicates an expected call of GetUIDTranslations.

func (*MockPodManagerMockRecorder) TranslatePodUID added in v1.28.0

func (mr *MockPodManagerMockRecorder) TranslatePodUID(uid interface{}) *gomock.Call

TranslatePodUID indicates an expected call of TranslatePodUID.

type MockPodStartupLatencyStateHelper added in v1.26.0

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

MockPodStartupLatencyStateHelper is a mock of PodStartupLatencyStateHelper interface.

func NewMockPodStartupLatencyStateHelper added in v1.26.0

func NewMockPodStartupLatencyStateHelper(ctrl *gomock.Controller) *MockPodStartupLatencyStateHelper

NewMockPodStartupLatencyStateHelper creates a new mock instance.

func (*MockPodStartupLatencyStateHelper) DeletePodStartupState added in v1.26.0

func (m *MockPodStartupLatencyStateHelper) DeletePodStartupState(podUID types.UID)

DeletePodStartupState mocks base method.

func (*MockPodStartupLatencyStateHelper) EXPECT added in v1.26.0

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

func (*MockPodStartupLatencyStateHelper) RecordStatusUpdated added in v1.26.0

func (m *MockPodStartupLatencyStateHelper) RecordStatusUpdated(pod *v1.Pod)

RecordStatusUpdated mocks base method.

type MockPodStartupLatencyStateHelperMockRecorder added in v1.26.0

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

MockPodStartupLatencyStateHelperMockRecorder is the mock recorder for MockPodStartupLatencyStateHelper.

func (*MockPodStartupLatencyStateHelperMockRecorder) DeletePodStartupState added in v1.26.0

func (mr *MockPodStartupLatencyStateHelperMockRecorder) DeletePodStartupState(podUID interface{}) *gomock.Call

DeletePodStartupState indicates an expected call of DeletePodStartupState.

func (*MockPodStartupLatencyStateHelperMockRecorder) RecordStatusUpdated added in v1.26.0

func (mr *MockPodStartupLatencyStateHelperMockRecorder) RecordStatusUpdated(pod interface{}) *gomock.Call

RecordStatusUpdated indicates an expected call of RecordStatusUpdated.

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