(
entries: &[LoadedEntry],
kind: AgentReportKind,
order: &SortOrder,
)
| 7 | }; |
| 8 | |
| 9 | pub(crate) fn report_json( |
| 10 | entries: &[LoadedEntry], |
| 11 | kind: AgentReportKind, |
| 12 | order: &SortOrder, |
| 13 | ) -> Result<Value> { |
| 14 | let mut rows = summarize_entries(entries, kind)?; |
| 15 | sort_summaries(&mut rows, order, |row| summary_period(row)); |
| 16 | Ok(report_from_rows(&rows, kind)) |
| 17 | } |
| 18 | |
| 19 | fn report_from_rows(rows: &[crate::UsageSummary], kind: AgentReportKind) -> Value { |
| 20 | let rows_json = rows |
no test coverage detected