Python: Add explorative test

This commit is contained in:
Rasmus Lerchedahl Petersen
2020-09-17 16:30:05 +02:00
parent aa28167177
commit e50b66554d
2 changed files with 15 additions and 0 deletions

View File

@@ -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>"

View File

@@ -43,4 +43,6 @@ class TestConfiguration extends DataFlow::Configuration {
node.(DataFlow::CfgNode).getNode() = call.getAnArg()
)
}
override int explorationLimit() { result = 4 }
}