kubernetes/pkg/kubelet/stats/cri_stats_provider_test.go

const offsetInodeUsage

const offsetUsage

const offsetCRI

const seedRoot

const seedKubelet

const seedMisc

const seedSandbox0

const seedContainer0

const seedSandbox1

const seedContainer1

const seedContainer2

const seedSandbox2

const seedContainer3

const seedSandbox3

const pName0

const pName1

const pName2

const cName0

const cName1

const cName2

const cName3

const cName5

const cName6

const cName7

const cName8

const cName9

const testPodLogDirectory

func TestCRIListPodStats(t *testing.T) {}

func TestListPodStatsStrictlyFromCRI(t *testing.T) {}

func TestCRIListPodCPUAndMemoryStats(t *testing.T) {}

func TestCRIImagesFsStats(t *testing.T) {}

func makeFakePodSandbox(name, uid, namespace string, terminated bool) *critest.FakePodSandbox {}

func makeFakeContainer(sandbox *critest.FakePodSandbox, name string, attempt uint32, terminated bool) *critest.FakeContainer {}

func makeFakeContainerStats(container *critest.FakeContainer, imageFsMountpoint string) *runtimeapi.ContainerStats {}

// makeFakeContainerStatsStrictlyFromCRI use CRI offset to fake CRI container stats to distinguish cadvisor stats.
func makeFakeContainerStatsStrictlyFromCRI(seed int, container *critest.FakeContainer, imageFsMountpoint string) *runtimeapi.ContainerStats {}

func makeFakePodSandboxStatsStrictlyFromCRI(seed int, podSandbox *critest.FakePodSandbox, podContainerStats ...*runtimeapi.ContainerStats) *runtimeapi.PodSandboxStats {}

func getPodSandboxStatsStrictlyFromCRI(seed int, podSandbox *critest.FakePodSandbox) statsapi.PodStats {}

func makeFakeImageFsUsage(fsMountpoint string) *runtimeapi.FilesystemUsage {}

func makeFakeVolumeStats(volumeNames []string) []statsapi.VolumeStats {}

func checkCRICPUAndMemoryStats(assert *assert.Assertions, actual statsapi.ContainerStats, cs *cadvisorapiv2.ContainerStats) {}

func checkCRICPUAndMemoryStatsForStrictlyFromCRI(assert *assert.Assertions, actual statsapi.ContainerStats, excepted statsapi.ContainerStats) {}

func checkCRIRootfsStats(assert *assert.Assertions, actual statsapi.ContainerStats, cs *runtimeapi.ContainerStats, imageFsInfo *cadvisorapiv2.FsInfo) {}

func checkCRILogsStats(assert *assert.Assertions, actual statsapi.ContainerStats, rootFsInfo *cadvisorapiv2.FsInfo, logStats *volume.Metrics) {}

func checkEphemeralStorageStats(assert *assert.Assertions,
	actual statsapi.PodStats,
	volumes []statsapi.VolumeStats,
	containers []*runtimeapi.ContainerStats,
	containerLogStats []*volume.Metrics,
	podLogStats *volume.Metrics) {}

func checkCRINetworkStats(assert *assert.Assertions, actual *statsapi.NetworkStats, expected *cadvisorapiv2.NetworkStats) {}

func checkCRIPodCPUAndMemoryStats(assert *assert.Assertions, actual statsapi.PodStats, cs *cadvisorapiv2.ContainerStats) {}

func checkCRIPodSwapStats(assert *assert.Assertions, actual statsapi.PodStats, cs *cadvisorapiv2.ContainerStats) {}

func checkCRIPodCPUAndMemoryStatsStrictlyFromCRI(assert *assert.Assertions, actual statsapi.PodStats, excepted statsapi.PodStats) {}

func makeFakeLogStats(seed int) *volume.Metrics {}

func TestGetContainerUsageNanoCores(t *testing.T) {}

func TestExtractIDFromCgroupPath(t *testing.T) {}

func getCRIContainerStatsStrictlyFromCRI(seed int, containerName string) statsapi.ContainerStats {}