[Gradle, JS] Inline single used method for prefix matching
This commit is contained in:
@@ -99,15 +99,11 @@ export class StartsWithFilter implements KotlinTestsFilter {
|
|||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
isPrefixMatched(fqn: string): boolean {
|
mayContainTestsFromSuite(fqn: string): boolean {
|
||||||
return startsWith(this.prefix, fqn)
|
return startsWith(this.prefix, fqn)
|
||||||
|| startsWith(fqn, this.prefix);
|
|| startsWith(fqn, this.prefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
mayContainTestsFromSuite(fqn: string): boolean {
|
|
||||||
return this.isPrefixMatched(fqn);
|
|
||||||
}
|
|
||||||
|
|
||||||
containsAllTestsFromSuite(fqn: string): boolean {
|
containsAllTestsFromSuite(fqn: string): boolean {
|
||||||
return this.filter == null && startsWith(fqn, this.prefix);
|
return this.filter == null && startsWith(fqn, this.prefix);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user