(self)
| 73 | return _build_ast_json_and_chunks(tree, source, old or {}) |
| 74 | |
| 75 | def test_empty_module(self): |
| 76 | json_str, chunks = self._build("") |
| 77 | parsed = _parse_json(json_str) |
| 78 | self.assertEqual(parsed["node_type"], "Module") |
| 79 | self.assertEqual(parsed["fields"]["body"], []) |
| 80 | self.assertEqual(chunks, {}) |
| 81 | |
| 82 | def test_single_function_structure(self): |
| 83 | src = "def foo(x):\n return x + 1\n" |
nothing calls this directly
no test coverage detected