Merge pull request #12851 from egregius313/egregius313/mad/add-groovy-stubs-to-isInTestFile

Java: Add `*/test/*` to model generator's list of ignored paths
This commit is contained in:
Edward Minnix III
2023-04-20 11:06:38 -04:00
committed by GitHub

View File

@@ -27,9 +27,8 @@ private J::Method superImpl(J::Method m) {
}
private predicate isInTestFile(J::File file) {
file.getAbsolutePath().matches("%src/test/%") or
file.getAbsolutePath().matches("%/guava-tests/%") or
file.getAbsolutePath().matches("%/guava-testlib/%")
file.getAbsolutePath().matches(["%/test/%", "%/guava-tests/%", "%/guava-testlib/%"]) and
not file.getAbsolutePath().matches("%/ql/test/%") // allows our test cases to work
}
private predicate isJdkInternal(J::CompilationUnit cu) {