(t *testing.T, g prometheus.Gauge)
| 25 | var m dto.Metric |
| 26 | if err := c.Write(&m); err != nil { |
| 27 | t.Fatalf("read counter: %v", err) |
| 28 | } |
| 29 | return m.GetCounter().GetValue() |
| 30 | } |
| 31 | |
| 32 | func counterVecValue(t *testing.T, c *prometheus.CounterVec, labels ...string) float64 { |
| 33 | t.Helper() |
| 34 | return counterValue(t, c.WithLabelValues(labels...)) |
| 35 | } |
| 36 | |
| 37 | func gaugeValue(t *testing.T, g prometheus.Gauge) float64 { |
no test coverage detected