(self)
| 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 | |
| 120 | a 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 |
nothing calls this directly
no test coverage detected