(out: &mut String, indent: &str, lines: &[String], has_following: bool)
| 323 | } |
| 324 | |
| 325 | fn write_tree_children(out: &mut String, indent: &str, lines: &[String], has_following: bool) { |
| 326 | for (index, line) in lines.iter().enumerate() { |
| 327 | let branch = if index + 1 == lines.len() && !has_following { |
| 328 | "└──" |
| 329 | } else { |
| 330 | "├──" |
| 331 | }; |
| 332 | out.push_str(&format!("{indent}{branch} {line}\n")); |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | fn node_details(graph: &Graph, node: &atomic_core::KgNode) -> Vec<String> { |
| 337 | let mut lines = vec![ |
no test coverage detected