mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Java/C#: remove isTestLibrary
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user