mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 05:56:37 +00:00
chore: enable more linter (#1557)
This commit is contained in:
@@ -13,6 +13,8 @@ import (
|
||||
)
|
||||
|
||||
func FuncBenchmarkCollector[C collector.Collector](b *testing.B, name string, collectFunc collector.BuilderWithFlags[C]) {
|
||||
b.Helper()
|
||||
|
||||
c := collectFunc(kingpin.CommandLine)
|
||||
collectors := collector.New(map[string]collector.Collector{name: c})
|
||||
require.NoError(b, collectors.Build())
|
||||
|
||||
Reference in New Issue
Block a user