(
shared: &SharedArgs,
is_stdout_tty: bool,
terminal_width: usize,
compact_width_threshold: usize,
)
| 16 | } |
| 17 | |
| 18 | pub(crate) fn should_use_compact_layout( |
| 19 | shared: &SharedArgs, |
| 20 | is_stdout_tty: bool, |
| 21 | terminal_width: usize, |
| 22 | compact_width_threshold: usize, |
| 23 | ) -> bool { |
| 24 | shared.compact || (is_stdout_tty && terminal_width < compact_width_threshold) |
| 25 | } |
| 26 | |
| 27 | pub(crate) fn summary_json(row: &UsageSummary) -> Value { |
| 28 | let mut value = json!({ |
no outgoing calls
no test coverage detected