(self)
| 827 | self.assertEqual(3, self.registry.get_sample_value('h_sum', {'a': 'b'})) |
| 828 | |
| 829 | def test_gaugehistogram(self): |
| 830 | self.custom_collector(GaugeHistogramMetricFamily('h', 'help', buckets=[('0', 1), ('+Inf', 2)])) |
| 831 | self.assertEqual(1, self.registry.get_sample_value('h_bucket', {'le': '0'})) |
| 832 | self.assertEqual(2, self.registry.get_sample_value('h_bucket', {'le': '+Inf'})) |
| 833 | |
| 834 | def test_gaugehistogram_labels(self): |
| 835 | cmf = GaugeHistogramMetricFamily('h', 'help', labels=['a']) |
nothing calls this directly
no test coverage detected