Skip to content

Commit

Permalink
[chore] [receiver/k8scluster] enable exhaustive lint (#25818)
Browse files Browse the repository at this point in the history
**Description:** 
related #23266

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
  • Loading branch information
fatsheep9146 authored Aug 15, 2023
1 parent e6b0fb8 commit edd4bfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions receiver/k8sclusterreceiver/internal/testutils/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func assertMetric(t testing.TB, m pmetric.Metric, expectedMetric string, expecte
require.NotEmpty(t, m.Description(), "empty description on metric")
require.Equal(t, expectedType, m.Type(), "mismatching metric types")
var dps pmetric.NumberDataPointSlice
//exhaustive:enforce
switch expectedType {
case pmetric.MetricTypeGauge:
dps = m.Gauge().DataPoints()
Expand Down

0 comments on commit edd4bfd

Please sign in to comment.