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

Function test_summary_metric_family

tests/test_exposition.py:506–509  ·  view source on GitHub ↗
(registry, count_value, sum_value, error)

Source from the content-addressed store, hash-verified

504 (0, {}, TypeError),
505])
506def test_summary_metric_family(registry, count_value, sum_value, error):
507 metric_family = core.SummaryMetricFamily('summary', 'help')
508 registry.register(Collector(metric_family, count_value, sum_value))
509 _expect_metric_exception(registry, error)
510
511
512@pytest.mark.parametrize('MetricFamily', [

Callers

nothing calls this directly

Calls 3

_expect_metric_exceptionFunction · 0.85
CollectorClass · 0.70
registerMethod · 0.45

Tested by

no test coverage detected