Kotlin / kotlinx-kover

Apache License 2.0
1.28k stars 48 forks source link

Exclude DefaultImpls from a report #517

Closed BulatInDrive closed 4 months ago

BulatInDrive commented 6 months ago

Describe the bug For interface with function with default params Kover generates 0% coverage report.

Expected behavior Default params shouldn't be in a report.

Reports

image

Environment

zuevmaxim commented 4 months ago

@BulatInDrive I confirm that line 5 should not be marked as red as it contains no executable code -- this is a bug Lines 6 and 7 contain the values of the default arguments, so kover treats them as uncovered, when the value is not used in tests. Consider adding tests with calls like makeCoffee()

zuevmaxim commented 4 months ago

The fix for line 5 is available in the agent version 1.0.745

shanshin commented 4 months ago

Fixed in 0.7.6