Skip to content

How i can deal with the coverage when use when in kotin? #763

@Lxiaoqiang

Description

@Lxiaoqiang

Describe the bug
when I use when(Type of String) {}, the branch coverage for the when line itself is especially low. Even if I cover all the other parts, the overall branch coverage only reaches 37% because of those two when branches.

Reports

Image

Environment

  • Kover Gradle Plugin version: 0.9.2
  • Gradle version: 8.11.1
  • Kotlin project type:Kotlin/Android

Metadata

Metadata

Assignees

Labels

BugBug issue typeS: waiting for clarificationStatus: additional information required to proceed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions