| 25 | #include "tlUnitTest.h" |
| 26 | |
| 27 | std::string node_to_string (const lay::AbstractMenuItem &item) |
| 28 | { |
| 29 | std::string s = item.name (); |
| 30 | if (! item.children.empty ()) { |
| 31 | s += "("; |
| 32 | for (std::list<lay::AbstractMenuItem>::const_iterator c = item.children.begin (); c != item.children.end (); ++c) { |
| 33 | if (c != item.children.begin ()) { |
| 34 | s += ","; |
| 35 | } |
| 36 | s += node_to_string (*c); |
| 37 | } |
| 38 | s += ")"; |
| 39 | } |
| 40 | return s; |
| 41 | } |
| 42 | |
| 43 | std::string menu_to_string (const lay::AbstractMenu &menu) |
| 44 | { |
no test coverage detected