MCPcopy
hub / github.com/joowani/binarytree / builtin_print

Function builtin_print

tests/utils.py:52–60  ·  view source on GitHub ↗

Helper function for testing builtin print on Node.

(values: NodeValueList)

Source from the content-addressed store, hash-verified

50
51
52def 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 != ""]

Callers

nothing calls this directly

Calls 2

buildFunction · 0.90
CaptureOutputClass · 0.85

Tested by

no test coverage detected