KoverReportFilter

Exclusion or inclusion class filter for Kover reports.

Exclusions example for Kotlin:

    excludes {
classes("*.foo.Bar", "*.M?Class")
classes(listOf("*.foo.Bar", "*.M?Class"))
packages("foo.b?r", "com.*.example")
val somePackages =
packages(listOf("foo.b?r", "com.*.example"))
annotatedBy("*Generated*", "com.example.KoverExclude")
projects.add(":my:lib*")
}

Functions

Link copied to clipboard

Add all classes generated by Android plugin to filters.

Link copied to clipboard
abstract fun annotatedBy(vararg annotationName: String)
abstract fun annotatedBy(vararg annotationName: Provider<String>)

Add to filters all classes and functions marked by specified annotations.

Link copied to clipboard
abstract fun classes(vararg names: String)
abstract fun classes(vararg names: Provider<String>)
abstract fun classes(names: Iterable<String>)
abstract fun classes(names: Provider<Iterable<String>>)

Add specified classes to current filters.

Link copied to clipboard
abstract fun inheritedFrom(vararg typeName: String)
abstract fun inheritedFrom(vararg typeName: Provider<String>)

Filter classes extending at least one of the specified classes or implementing at least one of the interfaces. The class itself with the specified name is not taken into account.

Link copied to clipboard
abstract fun packages(vararg names: String)
abstract fun packages(vararg names: Provider<String>)
abstract fun packages(names: Iterable<String>)
abstract fun packages(names: Provider<Iterable<String>>)

Add all classes in specified package and its subpackages to current filters.

Properties

Link copied to clipboard
abstract val annotatedBy: SetProperty<String>

Filters for classes and functions marked by specified annotations.

Link copied to clipboard
abstract val classes: SetProperty<String>

Classes of current filter.

Link copied to clipboard
abstract val inheritedFrom: SetProperty<String>

Filter classes extending at least one of the specified classes or implementing at least one of the interfaces. The class itself with the specified name is not taken into account.

Link copied to clipboard
abstract val projects: SetProperty<String>

Add all classes in specified project. Only the project path is used (starts with a colon).