MCPcopy Index your code
hub / github.com/coder/coder / PromCounterAssertion

Function PromCounterAssertion

testutil/prometheus.go:32–35  ·  view source on GitHub ↗
(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
32func 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
37func PromCounterGathered(t testing.TB, metrics []*dto.MetricFamily, name string, labels ...string) bool {
38 t.Helper()

Callers

nothing calls this directly

Calls 2

getValueFunction · 0.85
HelperMethod · 0.65

Tested by

no test coverage detected