Rename SyncMaptoMap -> SyncMapToMap
Signed-off-by: Shivanth <shivanth.metchem@deliveryhero.com>
This commit is contained in:
parent
aaa4dd1449
commit
782f32e1e7
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue