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

Method test_counter_utf8

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

Source from the content-addressed store, hash-verified

760 self.assertEqual(1, self.registry.get_sample_value('c_total', {}))
761
762 def test_counter_utf8(self):
763 self.custom_collector(CounterMetricFamily('my.metric', 'help', value=1))
764 self.assertEqual(1, self.registry.get_sample_value('my.metric_total', {}))
765
766 def test_counter_total(self):
767 self.custom_collector(CounterMetricFamily('c_total', 'help', value=1))

Callers

nothing calls this directly

Calls 3

custom_collectorMethod · 0.95
CounterMetricFamilyClass · 0.90
get_sample_valueMethod · 0.80

Tested by

no test coverage detected