@@ -245,7 +245,7 @@ func TestSumNoTelemetryAttrs(t *testing.T) {
245
245
require .Len (t , m .rms , qty )
246
246
247
247
rms := m .rms
248
- for i := 0 ; i < qty ; i ++ {
248
+ for i := range qty {
249
249
ms := rms [i ].ScopeMetrics [0 ].Metrics [0 ]
250
250
assert .Equal (t , "test" , ms .Name )
251
251
// @note update when telemetrygen allow other metric types
@@ -273,7 +273,7 @@ func TestGaugeNoTelemetryAttrs(t *testing.T) {
273
273
require .Len (t , m .rms , qty )
274
274
275
275
rms := m .rms
276
- for i := 0 ; i < qty ; i ++ {
276
+ for i := range qty {
277
277
ms := rms [i ].ScopeMetrics [0 ].Metrics [0 ]
278
278
assert .Equal (t , "test" , ms .Name )
279
279
// @note update when telemetrygen allow other metric types
@@ -301,7 +301,7 @@ func TestSumSingleTelemetryAttr(t *testing.T) {
301
301
require .Len (t , m .rms , qty )
302
302
303
303
rms := m .rms
304
- for i := 0 ; i < qty ; i ++ {
304
+ for i := range qty {
305
305
ms := rms [i ].ScopeMetrics [0 ].Metrics [0 ]
306
306
assert .Equal (t , "test" , ms .Name )
307
307
// @note update when telemetrygen allow other metric types
@@ -331,7 +331,7 @@ func TestGaugeSingleTelemetryAttr(t *testing.T) {
331
331
require .Len (t , m .rms , qty )
332
332
333
333
rms := m .rms
334
- for i := 0 ; i < qty ; i ++ {
334
+ for i := range qty {
335
335
ms := rms [i ].ScopeMetrics [0 ].Metrics [0 ]
336
336
assert .Equal (t , "test" , ms .Name )
337
337
// @note update when telemetrygen allow other metric types
@@ -362,7 +362,7 @@ func TestSumMultipleTelemetryAttr(t *testing.T) {
362
362
363
363
rms := m .rms
364
364
var actualValue attribute.Value
365
- for i := 0 ; i < qty ; i ++ {
365
+ for i := range qty {
366
366
ms := rms [i ].ScopeMetrics [0 ].Metrics [0 ]
367
367
// @note update when telemetrygen allow other metric types
368
368
attr := ms .Data .(metricdata.Sum [int64 ]).DataPoints [0 ].Attributes
@@ -398,7 +398,7 @@ func TestGaugeMultipleTelemetryAttr(t *testing.T) {
398
398
399
399
rms := m .rms
400
400
var actualValue attribute.Value
401
- for i := 0 ; i < qty ; i ++ {
401
+ for i := range qty {
402
402
ms := rms [i ].ScopeMetrics [0 ].Metrics [0 ]
403
403
// @note update when telemetrygen allow other metric types
404
404
attr := ms .Data .(metricdata.Gauge [int64 ]).DataPoints [0 ].Attributes
@@ -636,7 +636,7 @@ func TestUniqueSumTimeseries(t *testing.T) {
636
636
rms := m .rms
637
637
var actualValue attribute.Value
638
638
var exist bool
639
- for i := 0 ; i < qty ; i ++ {
639
+ for i := range qty {
640
640
ms := rms [i ].ScopeMetrics [0 ].Metrics [0 ]
641
641
// @note update when telemetrygen allow other metric types
642
642
attr := ms .Data .(metricdata.Sum [int64 ]).DataPoints [0 ].Attributes
0 commit comments