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

Method test_simple_summary

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

Source from the content-addressed store, hash-verified

97 self.assertEqual([GaugeMetricFamily("a_seconds", "help", value=1, unit='seconds')], list(families))
98
99 def test_simple_summary(self):
100 families = text_string_to_metric_families("""# TYPE a summary
101# HELP a help
102a_count 1
103a_sum 2
104# EOF
105""")
106 summary = SummaryMetricFamily("a", "help", count_value=1, sum_value=2)
107 self.assertEqual([summary], list(families))
108
109 def test_summary_quantiles(self):
110 families = text_string_to_metric_families("""# TYPE a summary

Callers

nothing calls this directly

Calls 2

SummaryMetricFamilyClass · 0.90

Tested by

no test coverage detected