-
Notifications
You must be signed in to change notification settings - Fork 3
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
Enhance arg multimap #192
Enhance arg multimap #192
Conversation
Codecov Report
@@ Coverage Diff @@
## master #192 +/- ##
============================================
+ Coverage 71.44% 71.50% +0.06%
+ Complexity 739 736 -3
============================================
Files 99 99
Lines 2150 2141 -9
Branches 298 296 -2
============================================
- Hits 1536 1531 -5
+ Misses 497 496 -1
+ Partials 117 114 -3
Continue to review full report at Codecov.
|
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.
LGTM. Very thorough work.
/* Equivalence Partitions: | ||
Expected Prefixes: | ||
- No prefixes | ||
- Single character prefixes | ||
- Multiple character prefixes | ||
- Prefixes not in arg string | ||
|
||
Preamble: | ||
- Empty string | ||
- Single word | ||
- Multiple word | ||
|
||
Parameters: | ||
- Empty parameter | ||
- Single word | ||
- Multiple word | ||
- Single word with trailing / leading spaces | ||
- Multiple word with trailing / leading spaces | ||
|
||
The following test cases attempts to cover all partitions in an efficient manner. | ||
*/ |
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.
Yup LGTM. Nice that you put the equivalence partitions as well.
Fixes #191 .
ArgumentTokenizer
should attempt to detect all possible prefixes. If it detects a prefix that is not in its list of expected prefixes, it will throw an appropriateParseException
.Misc Edits:
AddToOrderCommandParserTest
toParserUtilTest
, where it is more appropriate.