Helper function for testing Node.pprint with default arguments.
(values: NodeValueList)
| 28 | |
| 29 | |
| 30 | def pprint_default(values: NodeValueList) -> List[str]: |
| 31 | """Helper function for testing Node.pprint with default arguments.""" |
| 32 | root = build(values) |
| 33 | assert root is not None |
| 34 | |
| 35 | with CaptureOutput() as output: |
| 36 | root.pprint(index=False, delimiter="-") |
| 37 | assert output[0] == "" and output[-1] == "" |
| 38 | return [line for line in output if line != ""] |
| 39 | |
| 40 | |
| 41 | def pprint_with_index(values: NodeValueList) -> List[str]: |
nothing calls this directly
no test coverage detected