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

@@ -24,12 +24,9 @@ class TestLibrary extends RefType {
}
}
/** Holds if the given callable is part of a common testing library or framework. */
private predicate isTestLibrary(DotNet::Callable c) { c.getDeclaringType() instanceof TestLibrary }
/** Holds if the given callable is not worth supporting. */
private predicate isUninteresting(DotNet::Callable c) {
isTestLibrary(c) or
c.getDeclaringType() instanceof TestLibrary or
c.(Constructor).isParameterless()
}