Skip to content

Commit 470e033

Browse files
committed
Kotlin: Restrict a test's results to those in the test directory
1 parent a603f21 commit 470e033

File tree

1 file changed

+1
-0
lines changed
  • java/ql/test/kotlin/library-tests/annotation-accessor-result-type

1 file changed

+1
-0
lines changed

java/ql/test/kotlin/library-tests/annotation-accessor-result-type/test.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import java
22

33
query predicate classExprs(Expr e, string tstr) {
4+
exists(e.getFile().getRelativePath()) and
45
tstr = e.getType().toString() and
56
tstr.matches("%Class%")
67
}

0 commit comments

Comments
 (0)