Kotlin: Restrict a test's results to those in the test directory

This commit is contained in:
Ian Lynagh
2023-07-11 17:35:20 +01:00
parent a603f21ce1
commit 470e033090

View File

@@ -1,6 +1,7 @@
import java import java
query predicate classExprs(Expr e, string tstr) { query predicate classExprs(Expr e, string tstr) {
exists(e.getFile().getRelativePath()) and
tstr = e.getType().toString() and tstr = e.getType().toString() and
tstr.matches("%Class%") tstr.matches("%Class%")
} }