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

Method test_extra_whitespace

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

Source from the content-addressed store, hash-verified

130 self.assertEqualMetrics([], list(families))
131
132 def test_extra_whitespace(self):
133 families = text_string_to_metric_families("""# TYPE a counter
134# HELP a help
135a 1
136""")
137 self.assertEqualMetrics([CounterMetricFamily("a", "help", value=1)], list(families))
138
139 def test_tabs(self):
140 families = text_string_to_metric_families("""#\tTYPE\ta\tcounter

Callers

nothing calls this directly

Calls 3

assertEqualMetricsMethod · 0.95
CounterMetricFamilyClass · 0.90

Tested by

no test coverage detected