mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Java: Update tests to new partial flow api
This commit is contained in:
@@ -57,7 +57,9 @@ int explorationLimit() { result = 0 }
|
||||
|
||||
module Flow = TaintTracking::GlobalWithState<Config>;
|
||||
|
||||
module PartialFlow = Flow::FlowExploration<explorationLimit/0>;
|
||||
module PartialFlowFwd = Flow::FlowExplorationFwd<explorationLimit/0>;
|
||||
|
||||
module PartialFlowRev = Flow::FlowExplorationRev<explorationLimit/0>;
|
||||
|
||||
module HasFlowTest implements TestSig {
|
||||
string getARelevantTag() { result = ["pFwd", "pRev", "flow"] }
|
||||
@@ -72,8 +74,8 @@ module HasFlowTest implements TestSig {
|
||||
)
|
||||
or
|
||||
tag = "pFwd" and
|
||||
exists(PartialFlow::PartialPathNode src, PartialFlow::PartialPathNode node |
|
||||
PartialFlow::partialFlow(src, node, _) and
|
||||
exists(PartialFlowFwd::PartialPathNode src, PartialFlowFwd::PartialPathNode node |
|
||||
PartialFlowFwd::partialFlow(src, node, _) and
|
||||
checkNode(node.getNode()) and
|
||||
node.getNode().getLocation() = location and
|
||||
element = node.toString() and
|
||||
@@ -81,8 +83,8 @@ module HasFlowTest implements TestSig {
|
||||
)
|
||||
or
|
||||
tag = "pRev" and
|
||||
exists(PartialFlow::PartialPathNode node, PartialFlow::PartialPathNode sink |
|
||||
PartialFlow::partialFlowRev(node, sink, _) and
|
||||
exists(PartialFlowRev::PartialPathNode node, PartialFlowRev::PartialPathNode sink |
|
||||
PartialFlowRev::partialFlow(node, sink, _) and
|
||||
checkNode(node.getNode()) and
|
||||
node.getNode().getLocation() = location and
|
||||
element = node.toString() and
|
||||
|
||||
Reference in New Issue
Block a user