mirror of
https://github.com/github/codeql.git
synced 2026-04-05 15:18:20 +02:00
Python: Rename prints tag to flow
The former was a remnant of copying the setup over from `ql/test/experimental/import-resolution/importflow.ql`.
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
def process(value):
|
||||
sink(value) #$ prints=source
|
||||
sink(value) #$ flow=source
|
||||
|
||||
@@ -19,12 +19,12 @@ private module TestConfig implements DataFlow::ConfigSig {
|
||||
private module TestFlow = TaintTracking::Global<TestConfig>;
|
||||
|
||||
module FlowTest implements TestSig {
|
||||
string getARelevantTag() { result = "prints" }
|
||||
string getARelevantTag() { result = "flow" }
|
||||
|
||||
predicate hasActualResult(Location location, string element, string tag, string value) {
|
||||
exists(DataFlow::Node sink |
|
||||
TestFlow::flow(_, sink) and
|
||||
tag = "prints" and
|
||||
tag = "flow" and
|
||||
location = sink.getLocation() and
|
||||
value = "source" and
|
||||
element = sink.toString()
|
||||
|
||||
Reference in New Issue
Block a user