From 470e033090aad5be28dcff7354151c13df7ea7d6 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 11 Jul 2023 17:35:20 +0100 Subject: [PATCH] Kotlin: Restrict a test's results to those in the test directory --- .../kotlin/library-tests/annotation-accessor-result-type/test.ql | 1 + 1 file changed, 1 insertion(+) diff --git a/java/ql/test/kotlin/library-tests/annotation-accessor-result-type/test.ql b/java/ql/test/kotlin/library-tests/annotation-accessor-result-type/test.ql index 1f245499552..65576a7c19d 100644 --- a/java/ql/test/kotlin/library-tests/annotation-accessor-result-type/test.ql +++ b/java/ql/test/kotlin/library-tests/annotation-accessor-result-type/test.ql @@ -1,6 +1,7 @@ import java query predicate classExprs(Expr e, string tstr) { + exists(e.getFile().getRelativePath()) and tstr = e.getType().toString() and tstr.matches("%Class%") }