Skip to content
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

Improve code coverage #125

Conversation

chonguschonguschongus
Copy link

@chonguschonguschongus chonguschonguschongus commented Oct 31, 2023

Add more test cases to improve code coverage as well as a DoctorUtil class for testing AddDoctorCommand and its parser.

Moving forwards, I will try to write more test cases for AddDoctorCommand and its parser.

@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Merging #125 (161010c) into master (97d9816) will increase coverage by 0.17%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #125      +/-   ##
============================================
+ Coverage     72.93%   73.10%   +0.17%     
- Complexity      587      590       +3     
============================================
  Files            96       96              
  Lines          2017     2019       +2     
  Branches        203      204       +1     
============================================
+ Hits           1471     1476       +5     
+ Misses          481      479       -2     
+ Partials         65       64       -1     
Files Coverage Δ
...java/seedu/address/logic/commands/FindCommand.java 100.00% <100.00%> (ø)
...java/seedu/address/logic/parser/KeywordParser.java 93.75% <100.00%> (+0.89%) ⬆️
...seedu/address/model/person/BloodTypePredicate.java 100.00% <100.00%> (+13.33%) ⬆️
...va/seedu/address/model/person/GenderPredicate.java 100.00% <ø> (+9.09%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link

@tanveersingh10 tanveersingh10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! Made a small nit about the naming of test methods. Thanks for improving code coverage


// same values -> returns true
GenderPredicate firstPredicateCopy = new GenderPredicate(firstPredicateKeyword);
assertTrue(firstPredicate.equals(firstPredicateCopy));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job adding comments to make code more readable

Copy link

@cmHuang777 cmHuang777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, may be you can fix the issues mentioned, before merging into the master.

@chonguschonguschongus chonguschonguschongus merged commit c68176d into AY2324S1-CS2103T-T09-3:master Oct 31, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants