(out: &mut String, indent: &str, lines: &[String], has_following: bool)
| 304 | } |
| 305 | |
| 306 | fn write_tree_children(out: &mut String, indent: &str, lines: &[String], has_following: bool) { |
| 307 | for (index, line) in lines.iter().enumerate() { |
| 308 | let branch = if index + 1 == lines.len() && !has_following { |
| 309 | "└──" |
| 310 | } else { |
| 311 | "├──" |
| 312 | }; |
| 313 | out.push_str(&format!("{indent}{branch} {line}\n")); |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | fn node_details(graph: &Graph, node: &atomic_core::KgNode) -> Vec<String> { |
| 318 | let mut lines = vec![ |
no test coverage detected