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 #228

Merged
merged 2 commits into from
Nov 12, 2023

Conversation

tanveersingh10
Copy link

No description provided.

Copy link

codecov bot commented Nov 12, 2023

Codecov Report

Merging #228 (f95559b) into master (8643499) will increase coverage by 0.51%.
The diff coverage is 75.00%.

@@             Coverage Diff              @@
##             master     #228      +/-   ##
============================================
+ Coverage     79.07%   79.59%   +0.51%     
- Complexity      787      791       +4     
============================================
  Files           112      112              
  Lines          2538     2538              
  Branches        271      271              
============================================
+ Hits           2007     2020      +13     
+ Misses          439      430       -9     
+ Partials         92       88       -4     
Files Coverage Δ
...java/seedu/address/logic/commands/EditCommand.java 90.67% <75.00%> (+6.73%) ⬆️

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

Copy link

@kohkaijie kohkaijie left a comment

Choose a reason for hiding this comment

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

LGTM! Good job on adding test cases to ensure you cannot add patient fields for doctors for the EditCommand!

@kohkaijie kohkaijie added this to the v1.4 milestone Nov 12, 2023
@@ -135,7 +139,7 @@ private Person getEditedPerson(Model model, Person personToEdit) throws CommandE
editedPerson = createEditedDoctor(doctorToEdit, editPersonDescriptor);
}
if (!personToEdit.isSamePerson(editedPerson) && model.hasPerson(editedPerson)) {
logger.warning("Edited Person and orignal person are the same");
logger.warning("Edited Person and original person are the same");

Choose a reason for hiding this comment

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

siuuu

Copy link

@chonguschonguschongus chonguschonguschongus left a comment

Choose a reason for hiding this comment

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

LGTM

@tanveersingh10 tanveersingh10 merged commit 80b33bb into AY2324S1-CS2103T-T09-3:master Nov 12, 2023
4 of 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