(name: &'static str, value: Result<TableStatistics, ()>)
| 128 | } |
| 129 | |
| 130 | fn 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 | |
| 140 | fn current_view(root: &Path) -> Observation<CurrentViewCounts> { |
| 141 | let result = (|| { |
nothing calls this directly
no test coverage detected