MCPcopy Index your code
hub / github.com/prometheus/client_python / test_counter

Method test_counter

tests/test_core.py:147–150  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

145 metrics._use_created = _get_use_created()
146
147 def test_counter(self):
148 counter = Counter('c_total', 'help', registry=self.registry)
149 counter.inc()
150 self.assertEqual(None, self.registry.get_sample_value('c_created'))
151
152 def test_histogram(self):
153 histogram = Histogram('h', 'help', registry=self.registry)

Callers

nothing calls this directly

Calls 3

incMethod · 0.95
CounterClass · 0.90
get_sample_valueMethod · 0.80

Tested by

no test coverage detected