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

Method test_blank_lines_and_comments

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

Source from the content-addressed store, hash-verified

111 self.assertEqualMetrics([CounterMetricFamily("a", "help", value=1)], list(families))
112
113 def test_blank_lines_and_comments(self):
114 families = text_string_to_metric_families("""
115# TYPE a counter
116# FOO a
117# BAR b
118# HELP a help
119
120a 1
121""")
122 self.assertEqualMetrics([CounterMetricFamily("a", "help", value=1)], list(families))
123
124 def test_comments_parts_are_not_validated_against_legacy_metric_name(self):
125 # https://github.com/prometheus/client_python/issues/1108

Callers

nothing calls this directly

Calls 3

assertEqualMetricsMethod · 0.95
CounterMetricFamilyClass · 0.90

Tested by

no test coverage detected