-
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
Add Grade Parameter to Person #42
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #42 +/- ##
============================================
+ Coverage 75.26% 75.40% +0.14%
- Complexity 419 433 +14
============================================
Files 71 73 +2
Lines 1338 1403 +65
Branches 126 135 +9
============================================
+ Hits 1007 1058 +51
- Misses 301 310 +9
- Partials 30 35 +5 ☔ 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.
Overall:
LGTM! Added comments directly on the code for very minor changes, some general remarks:
- Should we consider separating Test and Grade into two entities?
- Is Checkstyle adhered to? On first glance looks like there's some unnecessary newlines and whitespaces, but I could be wrong
- How do we fix Codecov errors T_T
*/ | ||
public static final String TEST_NAME_VALIDATION_REGEX = ".+?"; | ||
public static final String GRADE_VALIDATION_REGEX = "(100|[1-9]?[0-9])$"; | ||
|
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.
(Styling) Extra line here can be removed
public final String grade; | ||
|
||
/** | ||
* Constructs an {@code Grade}. |
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.
Added grade parameter to person. Syntax for adding a grade would be /g testName: grade
Validation constraints are as follows:
has to be of format testName: grade e.g ca1: 50
testName cannot be empty
grade has to be a number between 0-100