(self)
| 51 | """, generate_latest(self.registry, openmetrics.ALLOWUTF8)) |
| 52 | |
| 53 | def test_counter_utf8(self): |
| 54 | c = Counter('utf8.cc', 'A counter', registry=self.registry) |
| 55 | c.inc() |
| 56 | self.assertEqual(b"""# HELP "utf8.cc_total" A counter |
| 57 | # TYPE "utf8.cc_total" counter |
| 58 | {"utf8.cc_total"} 1.0 |
| 59 | # HELP "utf8.cc_created" A counter |
| 60 | # TYPE "utf8.cc_created" gauge |
| 61 | {"utf8.cc_created"} 123.456 |
| 62 | """, generate_latest(self.registry, openmetrics.ALLOWUTF8)) |
| 63 | |
| 64 | def test_counter_utf8_escaped_underscores(self): |
| 65 | c = Counter('utf8.cc', 'A counter', registry=self.registry) |
nothing calls this directly
no test coverage detected