Change isInTestFile to ignore %/test/%

This commit is contained in:
Ed Minnix
2023-04-18 10:27:20 -04:00
parent d1de453c7a
commit 83d5cde01d

View File

@@ -27,8 +27,7 @@ private J::Method superImpl(J::Method m) {
}
private predicate isInTestFile(J::File file) {
file.getAbsolutePath()
.matches(["%src/test/%", "%/guava-tests/%", "%/guava-testlib/%", "%/groovy-stubs/test/%"])
file.getAbsolutePath().matches(["%/test/%", "%/guava-tests/%", "%/guava-testlib/%"])
}
private predicate isJdkInternal(J::CompilationUnit cu) {