MCPcopy Create free account
hub / github.com/prometheus/client_python / test_info

Method test_info

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

Source from the content-addressed store, hash-verified

841 self.assertEqual(3, self.registry.get_sample_value('h_gsum', {'a': 'b'}))
842
843 def test_info(self):
844 self.custom_collector(InfoMetricFamily('i', 'help', value={'a': 'b'}))
845 self.assertEqual(1, self.registry.get_sample_value('i_info', {'a': 'b'}))
846
847 def test_info_labels(self):
848 cmf = InfoMetricFamily('i', 'help', labels=['a'])

Callers

nothing calls this directly

Calls 3

custom_collectorMethod · 0.95
InfoMetricFamilyClass · 0.90
get_sample_valueMethod · 0.80

Tested by

no test coverage detected