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

Method test_prom_latest

tests/test_exposition.py:591–596  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

589 self.assert_is_openmetrics(exp)
590
591 def test_prom_latest(self):
592 generator, content_type = choose_encoder(CONTENT_TYPE_LATEST)
593 assert content_type == CONTENT_TYPE_PLAIN_1_0_0 + '; escaping=underscores'
594 exp = generator(self.registry).decode('utf-8')
595 self.assert_is_escaped(exp)
596 self.assert_is_prom(exp)
597
598 def test_prom_plain_1_0_0(self):
599 generator, content_type = choose_encoder(CONTENT_TYPE_PLAIN_1_0_0)

Callers

nothing calls this directly

Calls 3

assert_is_escapedMethod · 0.95
assert_is_promMethod · 0.95
choose_encoderFunction · 0.90

Tested by

no test coverage detected