Function
PromCounterAssertion
(t testing.TB, metrics []*dto.MetricFamily, assert func(in float64) bool, name string, labels ...string)
Source from the content-addressed store, hash-verified
| 30 | } |
| 31 | |
| 32 | func PromCounterAssertion(t testing.TB, metrics []*dto.MetricFamily, assert func(in float64) bool, name string, labels ...string) bool { |
| 33 | t.Helper() |
| 34 | return assert(getValue(t, metrics, counterKind, name, labels...)) |
| 35 | } |
| 36 | |
| 37 | func PromCounterGathered(t testing.TB, metrics []*dto.MetricFamily, name string, labels ...string) bool { |
| 38 | t.Helper() |
Callers
nothing calls this directly
Tested by
no test coverage detected