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

Method setUp

tests/test_process_collector.py:8–10  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6
7class TestProcessCollector(unittest.TestCase):
8 def setUp(self):
9 self.registry = CollectorRegistry()
10 self.test_proc = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'proc')
11
12 def test_working(self):
13 collector = ProcessCollector(proc=self.test_proc, pid=lambda: 26231, registry=self.registry)

Callers

nothing calls this directly

Calls 2

CollectorRegistryClass · 0.90
joinMethod · 0.80

Tested by

no test coverage detected