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

Method test_default_encoder

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

Source from the content-addressed store, hash-verified

554 self.assertRegex(exp, r'# EOF')
555
556 def test_default_encoder(self):
557 generator, content_type = choose_encoder(None)
558 assert content_type == CONTENT_TYPE_PLAIN_0_0_4
559 exp = generator(self.registry).decode('utf-8')
560 self.assert_is_escaped(exp)
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)

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