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

Method test_prom_utf8

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

Source from the content-addressed store, hash-verified

603 self.assert_is_prom(exp)
604
605 def test_prom_utf8(self):
606 generator, content_type = choose_encoder(CONTENT_TYPE_PLAIN_1_0_0 + '; escaping=allow-utf-8')
607 assert content_type == CONTENT_TYPE_PLAIN_1_0_0 + '; escaping=allow-utf-8'
608 exp = generator(self.registry).decode('utf-8')
609 self.assert_is_utf8(exp)
610 self.assert_is_prom(exp)
611
612 def test_prom_dots_escaping(self):
613 generator, content_type = choose_encoder(CONTENT_TYPE_PLAIN_1_0_0 + '; escaping=dots')

Callers

nothing calls this directly

Calls 3

assert_is_utf8Method · 0.95
assert_is_promMethod · 0.95
choose_encoderFunction · 0.90

Tested by

no test coverage detected