()
| 20 | |
| 21 | |
| 22 | def test_graph_single_node() -> None: |
| 23 | code = "x = 0" |
| 24 | graph = dataflow.DirectedGraph() |
| 25 | cell = parse_cell(code) |
| 26 | graph.register_cell("0", cell) |
| 27 | assert graph.cells == {"0": cell} |
| 28 | assert graph.parents == {"0": set()} |
| 29 | assert graph.children == {"0": set()} |
| 30 | |
| 31 | |
| 32 | def test_graph_two_chains() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…