Java: update model exclusions logic to cope with new automodel test location

This commit is contained in:
Stephan Brandauer 2023-08-18 10:27:46 +02:00
Родитель 1b31c4dd4c
Коммит 480e3bf506
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -27,7 +27,7 @@ class TestLibrary extends RefType {
/** Holds if the given file is a test file. */
private predicate isInTestFile(File file) {
file.getAbsolutePath().matches(["%/test/%", "%/guava-tests/%", "%/guava-testlib/%"]) and
not file.getAbsolutePath().matches("%/ql/test/%") // allows our test cases to work
not file.getAbsolutePath().matches(["%/ql/test/%", "%/ql/automodel/test/%"]) // allows our test cases to work
}
/** Holds if the given compilation unit's package is a JDK internal. */