mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: Add explorative test
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @kind path-problem
|
||||
*/
|
||||
|
||||
import experimental.dataflow.testConfig
|
||||
import DataFlow::PartialPathGraph
|
||||
|
||||
from TestConfiguration config, DataFlow::PartialPathNode source, DataFlow::PartialPathNode sink
|
||||
where
|
||||
config.hasPartialFlow(source, sink, _) and
|
||||
source.hasLocationInfo(_, 45, _, _, _) and
|
||||
config.isSink(sink.getNode())
|
||||
select sink.getNode(), source, sink, "<message>"
|
||||
@@ -43,4 +43,6 @@ class TestConfiguration extends DataFlow::Configuration {
|
||||
node.(DataFlow::CfgNode).getNode() = call.getAnArg()
|
||||
)
|
||||
}
|
||||
|
||||
override int explorationLimit() { result = 4 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user