Skip to content

Commit

Permalink
[chore] fix exhaustive lint for podmanreceiver (#23823)
Browse files Browse the repository at this point in the history
**Description:** 
related #23266

Signed-off-by: Ziqi Zhao <[email protected]>
  • Loading branch information
fatsheep9146 committed Jul 3, 2023
1 parent 537ba47 commit 8510b37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,6 @@ issues:
- path: googlecloudspannerreceiver
linters:
- exhaustive
- path: podmanreceiver
linters:
- exhaustive
- path: prometheusreceiver
linters:
- exhaustive
Expand Down
8 changes: 8 additions & 0 deletions receiver/podmanreceiver/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ func assertMetricEqual(t *testing.T, m pmetric.Metric, dt pmetric.MetricType, pt
assertPoints(t, m.Gauge().DataPoints(), pts)
case pmetric.MetricTypeSum:
assertPoints(t, m.Sum().DataPoints(), pts)
case pmetric.MetricTypeEmpty:
t.Errorf("unexpected data type: %s", dt)
case pmetric.MetricTypeHistogram:
t.Errorf("unexpected data type: %s", dt)
case pmetric.MetricTypeExponentialHistogram:
t.Errorf("unexpected data type: %s", dt)
case pmetric.MetricTypeSummary:
t.Errorf("unexpected data type: %s", dt)
default:
t.Errorf("unexpected data type: %s", dt)
}
Expand Down

0 comments on commit 8510b37

Please sign in to comment.