time: refactor collector (#1728)

This commit is contained in:
Jan-Otto Kröpke
2024-11-13 19:26:47 +01:00
committed by GitHub
parent b53f18bcc6
commit b4f50c542c
7 changed files with 159 additions and 89 deletions

View File

@@ -10,3 +10,7 @@ import (
func BenchmarkCollector(b *testing.B) {
testutils.FuncBenchmarkCollector(b, service.Name, service.NewWithFlags)
}
func TestCollector(t *testing.T) {
testutils.TestCollector(t, service.New, nil)
}