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

Method test_gauge

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

Source from the content-addressed store, hash-verified

789 self.assertIsNone(created_sample.exemplar)
790
791 def test_gauge(self):
792 self.custom_collector(GaugeMetricFamily('g', 'help', value=1))
793 self.assertEqual(1, self.registry.get_sample_value('g', {}))
794
795 def test_gauge_labels(self):
796 cmf = GaugeMetricFamily('g', 'help', labels=['a'])

Callers

nothing calls this directly

Calls 3

custom_collectorMethod · 0.95
GaugeMetricFamilyClass · 0.90
get_sample_valueMethod · 0.80

Tested by

no test coverage detected