(self)
| 50 | self.assertEqualMetrics([GaugeMetricFamily("a", "help", value=1)], list(families)) |
| 51 | |
| 52 | def test_simple_summary(self): |
| 53 | families = text_string_to_metric_families("""# TYPE a summary |
| 54 | # HELP a help |
| 55 | a_count 1 |
| 56 | a_sum 2 |
| 57 | """) |
| 58 | summary = SummaryMetricFamily("a", "help", count_value=1, sum_value=2) |
| 59 | self.assertEqualMetrics([summary], list(families)) |
| 60 | |
| 61 | def test_summary_quantiles(self): |
| 62 | families = text_string_to_metric_families("""# TYPE a summary |
nothing calls this directly
no test coverage detected