Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.
This repository was 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

Description

@junliu724515

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%

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions