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

Method test_no_metadata

tests/openmetrics/test_parser.py:445–451  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

443 self.assertEqual([imf], list(families))
444
445 def test_no_metadata(self):
446 families = text_string_to_metric_families("""a 1
447# EOF
448""")
449 metric_family = Metric("a", "", "untyped")
450 metric_family.add_sample("a", {}, 1)
451 self.assertEqual([metric_family], list(families))
452
453 def test_empty_metadata(self):
454 families = text_string_to_metric_families("""# HELP a

Callers

nothing calls this directly

Calls 3

add_sampleMethod · 0.95
MetricClass · 0.90

Tested by

no test coverage detected