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

Method setUp

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

Source from the content-addressed store, hash-verified

390
391class TestHistogram(unittest.TestCase):
392 def setUp(self):
393 self.registry = CollectorRegistry()
394 self.histogram = Histogram('h', 'help', registry=self.registry)
395 self.labels = Histogram('hl', 'help', ['l'], registry=self.registry)
396
397 def test_repr(self):
398 self.assertEqual(repr(self.histogram), "prometheus_client.metrics.Histogram(h)")

Callers

nothing calls this directly

Calls 2

CollectorRegistryClass · 0.85
HistogramClass · 0.85

Tested by

no test coverage detected