diff --git a/prometheus/histogram_test.go b/prometheus/histogram_test.go index 8a86ac6..665111e 100644 --- a/prometheus/histogram_test.go +++ b/prometheus/histogram_test.go @@ -1456,7 +1456,7 @@ func compareNativeExemplarValues(t *testing.T, exps []*dto.Exemplar, values []fl } } -func syncMaptoMap(syncmap *sync.Map) (m map[int]int64) { +func syncMapToMap(syncmap *sync.Map) (m map[int]int64) { m = map[int]int64{} syncmap.Range(func(key, value any) bool { m[key.(int)] = *value.(*int64) @@ -1974,8 +1974,8 @@ func TestConstNativeHistogram(t *testing.T) { consthist, err := NewConstNativeHistogram(_his.Desc(), cold.count, math.Float64frombits(cold.sumBits), - syncMaptoMap(&cold.nativeHistogramBucketsPositive), - syncMaptoMap(&cold.nativeHistogramBucketsNegative), + syncMapToMap(&cold.nativeHistogramBucketsPositive), + syncMapToMap(&cold.nativeHistogramBucketsNegative), cold.nativeHistogramZeroBucket, cold.nativeHistogramSchema, math.Float64frombits(cold.nativeHistogramZeroThresholdBits),