Skip to content

Commit

Permalink
fixup! cloudv2: Higher resolution for Histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
codebien committed Aug 25, 2023
1 parent 6143178 commit 7093321
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions output/cloud/expv2/hdr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,14 @@ func TestHistogramAsProto(t *testing.T) {
exp *pbcloud.TrendHdrValue
}{
{
name: "empty histogram",
name: "EmptyHistogram",
exp: &pbcloud.TrendHdrValue{
MaxValue: -math.MaxFloat64,
MinValue: math.MaxFloat64,
},
},
{
name: "not trackable values",
name: "UntrackableValues",
vals: []float64{-0.23, 1<<62 + 1},
exp: &pbcloud.TrendHdrValue{
ExtraLowValuesCounter: uint32ptr(1),
Expand All @@ -276,7 +276,7 @@ func TestHistogramAsProto(t *testing.T) {
},
},
{
name: "normal values",
name: "SimpleValues",
vals: []float64{7, 8, 9, 11, 12, 11.5, 10.5},
exp: &pbcloud.TrendHdrValue{
Count: 7,
Expand All @@ -293,7 +293,7 @@ func TestHistogramAsProto(t *testing.T) {
},
},
{
name: "with Zero-point values",
name: "WithZeroPointValues",
vals: []float64{2, 0.01, 3},
exp: &pbcloud.TrendHdrValue{
Count: 3,
Expand All @@ -312,7 +312,7 @@ func TestHistogramAsProto(t *testing.T) {
},
},
{
name: "a basic case",
name: "VeryBasic",
vals: []float64{2, 1.1, 3},
exp: &pbcloud.TrendHdrValue{
Count: 3,
Expand All @@ -331,7 +331,7 @@ func TestHistogramAsProto(t *testing.T) {
},
},
{
name: "longer sequence",
name: "LongerSequence",
vals: []float64{
2275, 52.25, 268.85, 383.47, 18.49,
163.85, 4105, 835.27, 52, 18.28, 238.44, 39751, 18.86,
Expand Down

0 comments on commit 7093321

Please sign in to comment.