(self)
| 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 |
| 101 | # HELP a help |
| 102 | a_count 1 |
| 103 | a_sum 2 |
| 104 | # EOF |
| 105 | """) |
| 106 | summary = SummaryMetricFamily("a", "help", count_value=1, sum_value=2) |
| 107 | self.assertEqual([summary], list(families)) |
| 108 | |
| 109 | def test_summary_quantiles(self): |
| 110 | families = text_string_to_metric_families("""# TYPE a summary |
nothing calls this directly
no test coverage detected