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.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
5 hours ago

Tools for package owners.