Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

wrong code format on if( date2 < date1) { return false; } causes wrong test coverage in VerifyDate #11

Open
junliu724515 opened this issue May 11, 2021 · 1 comment

Comments

@junliu724515
Copy link

I did not test the condition if( date2 < date1) { return false; } on line 16, but I still got 100% test coverage on VerifyDate class

it was caused by the "return false" statement being on the same line of if statement, so even without testing this condition, It was still 100%

@ChutkeAAkshitha
Copy link

Can someone share the test class file for my practice. I am not able to write the test class for this code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants