()
| 84 | |
| 85 | |
| 86 | def test_walk(): |
| 87 | tokens = MarkdownIt().parse(EXAMPLE_MARKDOWN) |
| 88 | tree = SyntaxTreeNode(tokens) |
| 89 | expected_node_types = ( |
| 90 | "root", |
| 91 | "heading", |
| 92 | "inline", |
| 93 | "text", |
| 94 | "paragraph", |
| 95 | "inline", |
| 96 | "text", |
| 97 | "strong", |
| 98 | "text", |
| 99 | "text", |
| 100 | ) |
| 101 | for node, expected_type in zip(tree.walk(), expected_node_types): |
| 102 | assert node.type == expected_type |
nothing calls this directly
no test coverage detected
searching dependent graphs…