mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: API graph tests: Disallow results outside project
Running the tests locally would result in thousands of results before
this 😱
This commit is contained in:
@@ -13,7 +13,8 @@ class ApiUseTest extends InlineExpectationsTest {
|
||||
l = n.getLocation() and
|
||||
// Module variable nodes have no suitable location, so it's best to simply exclude them entirely
|
||||
// from the inline tests.
|
||||
not n instanceof DataFlow::ModuleVariableNode
|
||||
not n instanceof DataFlow::ModuleVariableNode and
|
||||
exists(l.getFile().getRelativePath())
|
||||
}
|
||||
|
||||
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
||||
|
||||
Reference in New Issue
Block a user