cadvisor: Index | Files

package test

import ""


Package Files

mock.go storagetests.go

func StorageDriverFillRandomStatsFunc Uses

func StorageDriverFillRandomStatsFunc(
    containerName string,
    N int,
    driver TestStorageDriver,
    t *testing.T,

This function will generate random stats and write them into the storage. The function will not close the driver

func TimeEq Uses

func TimeEq(t1, t2 time.Time, tolerance time.Duration) bool

type MockStorageDriver Uses

type MockStorageDriver struct {
    MockCloseMethod bool

func (*MockStorageDriver) AddStats Uses

func (d *MockStorageDriver) AddStats(cInfo *info.ContainerInfo, stats *info.ContainerStats) error

func (*MockStorageDriver) Close Uses

func (d *MockStorageDriver) Close() error

type TestStorageDriver Uses

type TestStorageDriver interface {
    StatsEq(a *info.ContainerStats, b *info.ContainerStats) bool

Package test imports 6 packages (graph). Updated 2020-06-10. Refresh now. Tools for package owners.