MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / getCounterValue

Function getCounterValue

connection/observer_test.go:24–29  ·  view source on GitHub ↗
(t *testing.T, metric *prometheus.CounterVec, val string)

Source from the content-addressed store, hash-verified

22}
23
24func getCounterValue(t *testing.T, metric *prometheus.CounterVec, val string) float64 {
25 var m = &dto.Metric{}
26 err := metric.WithLabelValues(val).Write(m)
27 assert.NoError(t, err)
28 return m.Counter.GetValue()
29}
30
31func TestRegisterServerLocation(t *testing.T) {
32 m := newTunnelMetrics()

Callers 1

TestSendUrlFunction · 0.85

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected