Function
PromGaugeAssertion
(t testing.TB, metrics []*dto.MetricFamily, assert func(in float64) bool, name string, labels ...string)
Source from the content-addressed store, hash-verified
| 25 | } |
| 26 | |
| 27 | func PromGaugeAssertion(t testing.TB, metrics []*dto.MetricFamily, assert func(in float64) bool, name string, labels ...string) bool { |
| 28 | t.Helper() |
| 29 | return assert(getValue(t, metrics, gaugeKind, name, labels...)) |
| 30 | } |
| 31 | |
| 32 | func PromCounterAssertion(t testing.TB, metrics []*dto.MetricFamily, assert func(in float64) bool, name string, labels ...string) bool { |
| 33 | t.Helper() |