with Test Class
fun <T : KoTestClassProvider> List<T>.withTestClass(testPropertyName: String = "sut", moduleName: String? = null, sourceSetName: String? = null): List<T>
List containing declarations with a test.
Return
A list containing declarations with a test.
Parameters
test Property Name
the test property name to check. By default, "sut".
module Name
the name of the module to check (optional).
source Set Name
the name of the source set to check (optional).
fun <T : KoTestClassProvider> List<T>.withTestClass(moduleName: String? = null, sourceSetName: String? = null, predicate: (KoClassDeclaration) -> Boolean): List<T>
List containing declarations with a test matching the predicate.
Return
A list containing declarations with a test matching the predicate.
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.