saynotobugsorg / confidence

A declarative Java Assertion Framework
Apache License 2.0
11 stars 1 forks source link

unsafeInstanceOf Quality, closes #155 #156

Closed dmfs closed 8 months ago

dmfs commented 8 months ago

This provides a Quality similar to istanceOf but also taking Qualitys of subclasses of the given class. This is unsafe because there is no guarantee that the testee is actually of that subtype, but it may be required if the testee is a generic class.

It solves issues like described in https://github.com/hamcrest/JavaHamcrest/issues/388

codecov-commenter commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (7853662) 97.71% compared to head (f6da1cc) 97.71%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #156 +/- ## ========================================= Coverage 97.71% 97.71% - Complexity 820 821 +1 ========================================= Files 212 213 +1 Lines 1791 1793 +2 Branches 56 56 ========================================= + Hits 1750 1752 +2 Misses 31 31 Partials 10 10 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.