Helper function for testing builtin print on Node.
(values: NodeValueList)
| 50 | |
| 51 | |
| 52 | def builtin_print(values: NodeValueList) -> List[str]: |
| 53 | """Helper function for testing builtin print on Node.""" |
| 54 | root = build(values) |
| 55 | assert root is not None |
| 56 | |
| 57 | with CaptureOutput() as output: |
| 58 | print(root) |
| 59 | assert output[0] == "" and output[-1] == "" |
| 60 | return [line for line in output if line != ""] |
nothing calls this directly
no test coverage detected