hasTestClass

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

moduleName

the name of the module to check (optional).

sourceSetName

the name of the source set to check (optional).

predicate

A function that defines the condition to be met by a test class.