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

Method test_float_gauge

tests/openmetrics/test_parser.py:58–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

56 self.assertEqual([GaugeMetricFamily("a", "help", value=1)], list(families))
57
58 def test_float_gauge(self):
59 families = text_string_to_metric_families("""# TYPE a gauge
60# HELP a help
61a 1.2
62# EOF
63""")
64 self.assertEqual([GaugeMetricFamily("a", "help", value=1.2)], list(families))
65
66 def test_leading_zeros_simple_gauge(self):
67 families = text_string_to_metric_families("""# TYPE a gauge

Callers

nothing calls this directly

Calls 2

GaugeMetricFamilyClass · 0.90

Tested by

no test coverage detected