newFakeMetricsRecorder returns a fake metrics recorder based off the current state of global metric registry.
(t *testing.T)
| 265 | // newFakeMetricsRecorder returns a fake metrics recorder based off the current |
| 266 | // state of global metric registry. |
| 267 | func newFakeMetricsRecorder(t *testing.T) *fakeMetricsRecorder { |
| 268 | fmr := &fakeMetricsRecorder{ |
| 269 | t: t, |
| 270 | intValues: make(map[*MetricDescriptor]int64), |
| 271 | floatValues: make(map[*MetricDescriptor]float64), |
| 272 | } |
| 273 | return fmr |
| 274 | } |
| 275 | |
| 276 | // verifyLabels verifies that the labels received are of the expected length. |
| 277 | func verifyLabels(t *testing.T, labelsWant []string, optionalLabelsWant []string, labelsGot []string) { |
no outgoing calls
no test coverage detected