package testing

import "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/state/testing"

Index

Types

type MockCheckpoint

type MockCheckpoint struct {
	Content string
}

MockCheckpoint struct is used for mocking checkpoint values in testing

func (*MockCheckpoint) MarshalCheckpoint

func (mc *MockCheckpoint) MarshalCheckpoint() ([]byte, error)

MarshalCheckpoint returns fake content

func (*MockCheckpoint) UnmarshalCheckpoint

func (mc *MockCheckpoint) UnmarshalCheckpoint(blob []byte) error

UnmarshalCheckpoint fakes unmarshaling

func (*MockCheckpoint) VerifyChecksum

func (mc *MockCheckpoint) VerifyChecksum() error

VerifyChecksum fakes verifying checksum

Source Files

util.go

Version
v1.33.2
Published
Jun 17, 2025
Platform
js/wasm
Imports
1 packages
Last checked
38 seconds ago

Tools for package owners.