Java/C#: remove isTestLibrary

This commit is contained in:
Jami Cogswell
2022-12-13 10:34:04 -05:00
parent 08b5cf1415
commit a889cc4f65
2 changed files with 2 additions and 8 deletions

View File

@@ -31,12 +31,9 @@ private string containerAsJar(Container container) {
if container instanceof JarFile then result = container.getBaseName() else result = "rt.jar"
}
/** Holds if the given callable is part of a common testing library or framework. */
private predicate isTestLibrary(Callable c) { c.getDeclaringType() instanceof TestLibrary }
/** Holds if the given callable is not worth supporting. */
private predicate isUninteresting(Callable c) {
isTestLibrary(c) or
c.getDeclaringType() instanceof TestLibrary or
c.(Constructor).isParameterless()
}