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

Method test_empty_help

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

Source from the content-addressed store, hash-verified

153 self.assertEqualMetrics([metric_family], list(families))
154
155 def test_empty_help(self):
156 families = text_string_to_metric_families("""# TYPE a counter
157# HELP a
158a 1
159""")
160 self.assertEqualMetrics([CounterMetricFamily("a", "", value=1)], list(families))
161
162 def test_labels_and_infinite(self):
163 families = text_string_to_metric_families("""# TYPE a counter

Callers

nothing calls this directly

Calls 3

assertEqualMetricsMethod · 0.95
CounterMetricFamilyClass · 0.90

Tested by

no test coverage detected