(self)
| 395 | self.create_lines(nested_plan, prefix, depth + 1, width, index == len(plan["Plans"]) - 1) |
| 396 | |
| 397 | def generate_lines(self): |
| 398 | self.string_lines = [ |
| 399 | "○ Total Cost: %s" % self.intcomma(self.explain["Total Cost"]), |
| 400 | "○ Planning Time: %s" % self.duration_to_string(self.explain["Planning Time"]), |
| 401 | "○ Execution Time: %s" % self.duration_to_string(self.explain["Execution Time"]), |
| 402 | self.prefix_format("┬"), |
| 403 | ] |
| 404 | self.create_lines( |
| 405 | self.plan, |
| 406 | "", |
| 407 | 0, |
| 408 | self.terminal_width, |
| 409 | len(self.plan.get("Plans", [])) == 1, |
| 410 | ) |
| 411 | |
| 412 | def get_list(self): |
| 413 | return "\n".join(self.string_lines) |
no test coverage detected