Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Commit 5238c44

Browse files
committed
coverage: addSample with a measurement in the largets bucket
1 parent eeede3e commit 5238c44

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stackdriver_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ func TestSample(t *testing.T) {
120120
ss.AddSample([]string{"foo", "bar"}, 5.0)
121121
ss.AddSample([]string{"foo", "bar"}, 100.0)
122122
ss.AddSample([]string{"foo", "bar"}, 500.0)
123+
ss.AddSample([]string{"foo", "bar"}, 50000000.0)
123124
},
124125
createFn: func(t *testing.T) func(context.Context, *monitoringpb.CreateTimeSeriesRequest) (*emptypb.Empty, error) {
125126
return func(_ context.Context, req *monitoringpb.CreateTimeSeriesRequest) (*emptypb.Empty, error) {
@@ -136,8 +137,8 @@ func TestSample(t *testing.T) {
136137
Value: &monitoringpb.TypedValue{
137138
Value: &monitoringpb.TypedValue_DistributionValue{
138139
DistributionValue: &distributionpb.Distribution{
139-
BucketCounts: []int64{1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0},
140-
Count: 3,
140+
BucketCounts: []int64{1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1},
141+
Count: 4,
141142
},
142143
},
143144
},

0 commit comments

Comments
 (0)