has Test Class
abstract fun hasTestClass(moduleName: String? = null, sourceSetName: String? = null, predicate: (KoClassDeclaration) -> Boolean): Boolean
Determines whatever declaration has a test class that satisfies the provided predicate.
Return
true
if there is a matching test class, false
otherwise.
Parameters
module Name
the name of the module to check (optional).
source Set Name
the name of the source set to check (optional).
predicate
A function that defines the condition to be met by a test class.