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

Method test_summary

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

Source from the content-addressed store, hash-verified

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)
159 summary.observe(8.2)
160 self.assertEqual(None, self.registry.get_sample_value('s_created'))
161
162
163class TestGauge(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

observeMethod · 0.95
SummaryClass · 0.85
get_sample_valueMethod · 0.80

Tested by

no test coverage detected