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

Method test_plain_encoder

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

Source from the content-addressed store, hash-verified

561 self.assert_is_prom(exp)
562
563 def test_plain_encoder(self):
564 generator, content_type = choose_encoder(CONTENT_TYPE_PLAIN_0_0_4)
565 assert content_type == CONTENT_TYPE_PLAIN_0_0_4
566 exp = generator(self.registry).decode('utf-8')
567 self.assert_is_escaped(exp)
568 self.assert_is_prom(exp)
569
570 def test_openmetrics_latest(self):
571 generator, content_type = choose_encoder(openmetrics.CONTENT_TYPE_LATEST)

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