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

Function table_metric

atomic-cli/src/commands/diagnostics/metrics.rs:130–138  ·  view source on GitHub ↗
(name: &'static str, value: Result<TableStatistics, ()>)

Source from the content-addressed store, hash-verified

128}
129
130fn table_metric(name: &'static str, value: Result<TableStatistics, ()>) -> TableMetric {
131 TableMetric {
132 name,
133 statistics: match value {
134 Ok(value) => Observation::available(value),
135 Err(()) => Observation::unavailable("table statistics unavailable"),
136 },
137 }
138}
139
140fn current_view(root: &Path) -> Observation<CurrentViewCounts> {
141 let result = (|| {

Callers

nothing calls this directly

Calls 1

unavailableFunction · 0.50

Tested by

no test coverage detected