MCPcopy Index your code
hub / github.com/RustPython/RustPython / ast_repr_update_snapshots

Function ast_repr_update_snapshots

Lib/test/test_ast/test_ast.py:46–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44
45
46def ast_repr_update_snapshots() -> None:
47 data = [repr(ast.parse(test)) for test in ast_repr_get_test_cases()]
48 AST_REPR_DATA_FILE.write_text("\n".join(data))
49
50
51class LazyImportTest(unittest.TestCase):

Callers 1

test_ast.pyFile · 0.85

Calls 5

reprFunction · 0.85
ast_repr_get_test_casesFunction · 0.85
parseMethod · 0.45
write_textMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected