mirror of
https://github.com/github/codeql.git
synced 2026-01-02 17:26:44 +01:00
21 lines
605 B
Plaintext
21 lines
605 B
Plaintext
import python
|
|
import TestUtilities.InlineExpectationsTest
|
|
|
|
private module RemoteFlowTest implements TestSig {
|
|
private import semmle.python.dataflow.new.RemoteFlowSources
|
|
private import semmle.python.dataflow.new.internal.PrintNode
|
|
|
|
string getARelevantTag() { result = "remoteFlow" }
|
|
|
|
predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
exists(RemoteFlowSource source |
|
|
location = source.getLocation() and
|
|
tag = "remoteFlow" and
|
|
value = prettyNode(source) and
|
|
element = source.toString()
|
|
)
|
|
}
|
|
}
|
|
|
|
import MakeTest<RemoteFlowTest>
|