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

Method test_histogram

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

Source from the content-addressed store, hash-verified

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)
154 histogram.observe(3.2)
155 self.assertEqual(None, self.registry.get_sample_value('h_created'))
156
157 def test_summary(self):
158 summary = Summary('s', 'help', registry=self.registry)

Callers

nothing calls this directly

Calls 3

observeMethod · 0.95
HistogramClass · 0.85
get_sample_valueMethod · 0.80

Tested by

no test coverage detected