(t *testing.T)
| 51 | } |
| 52 | |
| 53 | func TestCounterValue(t *testing.T) { |
| 54 | require.Equal(t, float64(0), counterValue(nil)) |
| 55 | require.Equal(t, float64(0), counterValue(&dto.Metric{})) |
| 56 | require.Equal(t, float64(0), counterValue(&dto.Metric{Counter: &dto.Counter{}})) |
| 57 | require.Equal(t, float64(543857.12837), counterValue(&dto.Metric{Counter: &dto.Counter{Value: proto.Float64(543857.12837)}})) |
| 58 | } |
| 59 | |
| 60 | func TestGetMetricsWithLabelNames(t *testing.T) { |
| 61 | labels := []string{"a", "b"} |
nothing calls this directly
no test coverage detected