Skip to content

Comments

Added test cases for PythonSitter and Python Analysis#76

Merged
rahlk merged 3 commits intocodellm-devkit:mainfrom
rofrano:fix-testcases
Jan 29, 2025
Merged

Added test cases for PythonSitter and Python Analysis#76
rahlk merged 3 commits intocodellm-devkit:mainfrom
rofrano:fix-testcases

Conversation

@rofrano
Copy link
Collaborator

@rofrano rofrano commented Jan 28, 2025

Made the following changes:

  • Added test cases to bring PythonSitter up to 84% code coverage
  • Added test cases to bring PythonAnalysis up to 100% code coverage
  • Fixed bug in PythonAnalysis.is_parsable() that was calling PythonSitter with wrong parameters
  • Fixed bug in PythonAnalysis.get_raw_ast() that was calling PythonSitter with wrong parameters
  • Renamed cldk/analysis/python/python.py to cldk/analysis/python/python_analysis.py to be PEP8 compliant because it contains the PythonAnalysis class code.

Signed-off-by: John Rofrano <johnnyroy@johnrofrano.com>
Signed-off-by: John Rofrano <johnnyroy@johnrofrano.com>
@rofrano rofrano requested a review from rahlk January 28, 2025 20:23
@rahlk rahlk merged commit 8d118d9 into codellm-devkit:main Jan 29, 2025
1 check passed
@rofrano rofrano deleted the fix-testcases branch January 29, 2025 15:38
@rahlk rahlk added the test Added new tests label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Added new tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants