func scrapeMetrics(s *kubeapiservertesting.TestServer) (testutil.Metrics, error) { … } func checkForExpectedMetrics(t *testing.T, metrics testutil.Metrics, expectedMetrics []string) { … } func TestAPIServerProcessMetrics(t *testing.T) { … } func TestAPIServerStorageMetrics(t *testing.T) { … } func TestAPIServerMetrics(t *testing.T) { … } func TestAPIServerMetricsLabels(t *testing.T) { … } func TestAPIServerMetricsPods(t *testing.T) { … } func TestAPIServerMetricsNamespaces(t *testing.T) { … } func getSamples(s *kubeapiservertesting.TestServer) (model.Samples, error) { … } func diffMetrics(newSamples model.Samples, oldSamples model.Samples) model.Samples { … } func sampleExistsInSamples(s *model.Sample, samples model.Samples) bool { … }