-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Logic component to use enum factory pattern #72
Refactor Logic component to use enum factory pattern #72
Conversation
All exceptions within CommandType::createCommand are changed to a lower level IllegalArgumentException while the entry point rethrows a higher level ParseException. Delete all command parser tests Removed all command parser tests pending new tests written for command classes which encapsulate the parsing functionality.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #72 +/- ##
=========================================
Coverage 74.56% 74.56%
+ Complexity 397 388 -9
=========================================
Files 70 66 -4
Lines 1270 1274 +4
Branches 104 103 -1
=========================================
+ Hits 947 950 +3
- Misses 292 295 +3
+ Partials 31 29 -2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on the refactorization! I have made some minor suggestions to improve the code further.
Add Order "C" and "D" of CRUD.
Closes #63
Aim to reduce the number of files that need to be changed to add a new command.
Number of files in Logic reduced.
Moved CliSyntax and Prefix functionality into fields.
Rewrote tests for command parsing.