Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function reference missing line coverage #148

Closed
samtwil opened this issue Mar 4, 2022 · 3 comments
Closed

Function reference missing line coverage #148

samtwil opened this issue Mar 4, 2022 · 3 comments
Labels

Comments

@samtwil
Copy link

samtwil commented Mar 4, 2022

I'm only seeing partial coverage on a function reference when running koverHtmlReport

Here is an example:

class Foo {
    fun bar() {
        print("hello")
    }
}

fun main() {
    val foo = Foo()
    print(foo::bar) // <--- Partially covered
}

I would expect the foo::bar code to be covered since it's just a function reference and not an actual invocation.

Is there someting I'm missing here? Thanks!

gradle version: 7.1
kotlin version: 1.6.0
kotlinx-kover version: 0.5.0

@Xinkle
Copy link

Xinkle commented Mar 21, 2022

I got same problem.

@zuevmaxim
Copy link

Fixed in agent version 1.0.682

@shanshin
Copy link
Collaborator

shanshin commented Oct 3, 2022

Fixed in Kover 0.6.1

@shanshin shanshin closed this as completed Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants