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

Method test_utf8_counter

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

Source from the content-addressed store, hash-verified

27 self.assertEqualMetrics([CounterMetricFamily("a", "help", value=1)], list(families))
28
29 def test_utf8_counter(self):
30 families = text_string_to_metric_families("""# TYPE "a.b" counter
31# HELP "a.b" help
32{"a.b"} 1
33""")
34 self.assertEqualMetrics([CounterMetricFamily("a.b", "help", value=1)], list(families))
35
36 def test_complex_name_counter(self):
37 families = text_string_to_metric_families("""# TYPE "my.counter{} # = \\" \\n" counter

Callers

nothing calls this directly

Calls 3

assertEqualMetricsMethod · 0.95
CounterMetricFamilyClass · 0.90

Tested by

no test coverage detected