-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Steps to reproduce
JaCoCo version: 0.8.2
Operating system: macOS High Sierra 10.13.6
Tool integration: Gradle
Run JaCoCo using gradle on this Kotlin code:
fun returnString(): String {
return "string"
}
fun coverage1() {
returnString().trim()
}
fun coverage2() {
returnString()
}
Here's the code for Kotlin's trim()
method:
/**
* Returns a string having leading and trailing whitespace removed.
*/
@kotlin.internal.InlineOnly
public inline fun String.trim(): String = (this as CharSequence).trim().toString()
Expected behaviour
I expect the line to be fully covered when using Kotlin .trim()
Actual behaviour
Metadata
Metadata
Assignees
Type
Projects
Status
Done
Status
Done