kubernetes/pkg/controller/podautoscaler/metrics/client_test.go

var fixedTimestamp

type metricPoint

type restClientTestCase

func (tc *restClientTestCase) prepareTestClient(t *testing.T) (*metricsfake.Clientset, *cmfake.FakeCustomMetricsClient, *emfake.FakeExternalMetricsClient) {}

func (tc *restClientTestCase) verifyResults(t *testing.T, metrics PodMetricsInfo, timestamp time.Time, err error) {}

func (tc *restClientTestCase) runTest(t *testing.T) {}

func TestRESTClientPodCPU(t *testing.T) {}

func TestRESTClientContainerCPU(t *testing.T) {}

func TestRESTClientExternal(t *testing.T) {}

func TestRESTClientQPS(t *testing.T) {}

func TestRESTClientSingleObject(t *testing.T) {}

func TestRESTClientQpsSumEqualZero(t *testing.T) {}

func TestRESTClientExternalSumEqualZero(t *testing.T) {}

func TestRESTClientQpsEmptyMetrics(t *testing.T) {}

func TestRESTClientExternalEmptyMetrics(t *testing.T) {}

func TestRESTClientPodCPUEmptyMetrics(t *testing.T) {}

func TestRESTClientPodCPUEmptyMetricsForOnePod(t *testing.T) {}

func TestRESTClientContainerCPUEmptyMetricsForOnePod(t *testing.T) {}

func offsetTimestampBy(t int) time.Time {}