| 83 | } |
| 84 | |
| 85 | std::string ToString() const { |
| 86 | auto out = "\n" + info.path; |
| 87 | if (info.is_dir) out += "/"; |
| 88 | |
| 89 | for (const auto& subtree : subtrees) { |
| 90 | out += subtree.ToString(); |
| 91 | } |
| 92 | return out; |
| 93 | } |
| 94 | |
| 95 | friend std::ostream& operator<<(std::ostream& os, const TestPathTree& tree) { |
| 96 | return os << tree.ToString(); |