This pull request includes changes to the code_to_data_dependency_graph.py, tests/test_code_to_data_dependency_graph.py, tests/test_var_ddg.py, and var_ddg.py files. The changes involve adding unit tests for the code_to_data_dependency_graph.py and var_ddg.py files.
Summary
Added a new function get_deps to code_to_data_dependency_graph.py that extracts dependencies from a block of code.
Added a new method recursive_ddg to code_to_data_dependency_graph.py that recursively builds the Data Dependency Graph (DDG) for a given function root node.
Added unit tests for the get_deps function in tests/test_code_to_data_dependency_graph.py.
Added unit tests for the MethodLevelDDGs class in tests/test_code_to_data_dependency_graph.py.
Added unit tests for the MyVisitor class in tests/test_var_ddg.py.
Added a new method ast_visit to var_ddg.py that visits nodes in the AST recursively to construct the DDG.
Added unit tests for the ast_visit method in tests/test_var_ddg.py.
Fixes #13.
🎉 Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
PR Feedback (click)
Description
This pull request includes changes to the code_to_data_dependency_graph.py, tests/test_code_to_data_dependency_graph.py, tests/test_var_ddg.py, and var_ddg.py files. The changes involve adding unit tests for the code_to_data_dependency_graph.py and var_ddg.py files.
Summary
get_deps
to code_to_data_dependency_graph.py that extracts dependencies from a block of code.recursive_ddg
to code_to_data_dependency_graph.py that recursively builds the Data Dependency Graph (DDG) for a given function root node.get_deps
function in tests/test_code_to_data_dependency_graph.py.MethodLevelDDGs
class in tests/test_code_to_data_dependency_graph.py.MyVisitor
class in tests/test_var_ddg.py.ast_visit
to var_ddg.py that visits nodes in the AST recursively to construct the DDG.ast_visit
method in tests/test_var_ddg.py.Fixes #13.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: