(text: &str, prefix: &str)
| 69 | } |
| 70 | |
| 71 | fn prefix_lines(text: &str, prefix: &str) -> String { |
| 72 | if prefix.is_empty() { |
| 73 | return text.to_string(); |
| 74 | } |
| 75 | |
| 76 | text.lines() |
| 77 | .map(|line| format!("{prefix}{line}")) |
| 78 | .collect::<Vec<_>>() |
| 79 | .join("\n") |
| 80 | } |
| 81 | |
| 82 | fn has_directory_shape(node: &PathNode) -> bool { |
| 83 | node.children |
no test coverage detected