(d, indent = '')
| 9 | |
| 10 | # Define a recursive function for iterating over actions |
| 11 | def iterAction(d, indent = ''): |
| 12 | # Print this action |
| 13 | print('%s%d: %s' % (indent, d.eventId, d.GetName(controller.GetStructuredFile()))) |
| 14 | |
| 15 | # Iterate over the action's children |
| 16 | for d in d.children: |
| 17 | iterAction(d, indent + ' ') |
| 18 | |
| 19 | def sampleCode(controller): |
| 20 | # Iterate over all of the root actions |
no test coverage detected