MCPcopy Index your code
hub / github.com/prometheus/client_python / test_histogram_metric_families

Function test_histogram_metric_families

tests/test_exposition.py:525–528  ·  view source on GitHub ↗
(MetricFamily, registry, buckets, sum_value, error)

Source from the content-addressed store, hash-verified

523 ([('spam', ''), ('eggs', 0)], 0, ValueError),
524])
525def test_histogram_metric_families(MetricFamily, registry, buckets, sum_value, error):
526 metric_family = MetricFamily(MetricFamily.__name__, 'help')
527 registry.register(Collector(metric_family, buckets, sum_value))
528 _expect_metric_exception(registry, error)
529
530
531class TestChooseEncoder(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

_expect_metric_exceptionFunction · 0.85
CollectorClass · 0.70
registerMethod · 0.45

Tested by

no test coverage detected