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

Method test_simple_gauge

tests/test_parser.py:45–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 self.assertEqual([metric], list(families))
44
45 def test_simple_gauge(self):
46 families = text_string_to_metric_families("""# TYPE a gauge
47# HELP a help
48a 1
49""")
50 self.assertEqualMetrics([GaugeMetricFamily("a", "help", value=1)], list(families))
51
52 def test_simple_summary(self):
53 families = text_string_to_metric_families("""# TYPE a summary

Callers

nothing calls this directly

Calls 3

assertEqualMetricsMethod · 0.95
GaugeMetricFamilyClass · 0.90

Tested by

no test coverage detected