func getCounter(t *testing.T, s *storage.Store, key string) int64 { counter := s.Registry().GetCounter(key) if counter == nil { t.Fatal(util.ErrorfSkipFrames(1, "store did not contain counter %s", key)) } return counter.Count() }
func getGauge(t *testing.T, s *storage.Store, key string) int64 { gauge := s.Registry().GetGauge(key) if gauge == nil { t.Fatal(util.ErrorfSkipFrames(1, "store did not contain gauge %s", key)) } return gauge.Value() }