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

Method test_tabs

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

Source from the content-addressed store, hash-verified

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
141#\tHELP\ta\thelp
142a\t1
143""")
144 self.assertEqualMetrics([CounterMetricFamily("a", "help", value=1)], list(families))
145
146 def test_labels_with_curly_braces(self):
147 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