(self)
| 84 | """, generate_latest(self.registry)) |
| 85 | |
| 86 | def test_counter_total(self): |
| 87 | c = Counter('cc_total', 'A counter', registry=self.registry) |
| 88 | c.inc() |
| 89 | self.assertEqual(b"""# HELP cc_total A counter |
| 90 | # TYPE cc_total counter |
| 91 | cc_total 1.0 |
| 92 | # HELP cc_created A counter |
| 93 | # TYPE cc_created gauge |
| 94 | cc_created 123.456 |
| 95 | """, generate_latest(self.registry)) |
| 96 | |
| 97 | def test_gauge(self): |
| 98 | g = Gauge('gg', 'A gauge', registry=self.registry) |
nothing calls this directly
no test coverage detected