(self)
| 88 | self.assertTrue(math.isnan(list(families)[0].samples[0].value)) |
| 89 | |
| 90 | def test_unit_gauge(self): |
| 91 | families = text_string_to_metric_families("""# TYPE a_seconds gauge |
| 92 | # UNIT a_seconds seconds |
| 93 | # HELP a_seconds help |
| 94 | a_seconds 1 |
| 95 | # EOF |
| 96 | """) |
| 97 | self.assertEqual([GaugeMetricFamily("a_seconds", "help", value=1, unit='seconds')], list(families)) |
| 98 | |
| 99 | def test_simple_summary(self): |
| 100 | families = text_string_to_metric_families("""# TYPE a summary |
nothing calls this directly
no test coverage detected