MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / metric_scope

Function metric_scope

atomic-audit/src/extract/mod.rs:152–158  ·  view source on GitHub ↗
(metric: Metric)

Source from the content-addressed store, hash-verified

150}
151
152fn metric_scope(metric: Metric) -> MetricScope {
153 METRIC_CARDS
154 .iter()
155 .find(|card| card.metric == metric)
156 .expect("catalog covers every metric")
157 .scope
158}
159
160fn inventory(root: Node<'_>) -> Result<Vec<Node<'_>>, String> {
161 let mut result = Vec::new();

Callers 1

extract_changesFunction · 0.85

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected