ApplicationRule

fun interface ApplicationRule

Determines if Mokkery should be applied to given KotlinSourceSet or not.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Listed(elements: List<String>) : ApplicationRule

Results in Mokkery being applied to all source sets with specified names.

Link copied to clipboard
data class MatchesName(val regex: Regex) : ApplicationRule

Results in Mokkery being applied to all source sets matching regex.

Functions

Link copied to clipboard
abstract fun isApplicable(sourceSet: KotlinSourceSet): Boolean