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

Function PromGaugeHasValue

testutil/prometheus.go:17–20  ·  view source on GitHub ↗
(t testing.TB, metrics []*dto.MetricFamily, value float64, name string, labels ...string)

Source from the content-addressed store, hash-verified

15)
16
17func PromGaugeHasValue(t testing.TB, metrics []*dto.MetricFamily, value float64, name string, labels ...string) bool {
18 t.Helper()
19 return value == getValue(t, metrics, gaugeKind, name, labels...)
20}
21
22func PromCounterHasValue(t testing.TB, metrics []*dto.MetricFamily, value float64, name string, labels ...string) bool {
23 t.Helper()

Callers 3

TestPGPubsub_MetricsFunction · 0.92
TestProxy_MITMFunction · 0.92

Calls 2

getValueFunction · 0.85
HelperMethod · 0.65

Tested by 3

TestPGPubsub_MetricsFunction · 0.74
TestProxy_MITMFunction · 0.74