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

Method setUp

tests/test_exposition.py:532–535  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

530
531class TestChooseEncoder(unittest.TestCase):
532 def setUp(self):
533 self.registry = CollectorRegistry()
534 c = Counter('dotted.counter', 'A counter', registry=self.registry)
535 c.inc()
536
537 def custom_collector(self, metric_family):
538 class CustomCollector:

Callers

nothing calls this directly

Calls 3

incMethod · 0.95
CollectorRegistryClass · 0.90
CounterClass · 0.90

Tested by

no test coverage detected