Kotlin / kotlinx-kover

Apache License 2.0
1.37k stars 53 forks source link

Exclude DefaultImpls from a report #517

Closed BulatInDrive closed 9 months ago

BulatInDrive commented 11 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 10 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 10 months ago

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

shanshin commented 9 months ago

Fixed in 0.7.6