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

Function test_basic_metric_families

tests/test_exposition.py:490–493  ·  view source on GitHub ↗
(registry, MetricFamily, value, error)

Source from the content-addressed store, hash-verified

488 ({}, TypeError),
489])
490def test_basic_metric_families(registry, MetricFamily, value, error):
491 metric_family = MetricFamily(MetricFamily.__name__, 'help')
492 registry.register(Collector(metric_family, value))
493 _expect_metric_exception(registry, error)
494
495
496@pytest.mark.parametrize('count_value,sum_value,error', [

Callers

nothing calls this directly

Calls 3

_expect_metric_exceptionFunction · 0.85
CollectorClass · 0.70
registerMethod · 0.45

Tested by

no test coverage detected