Files
2024-04-23 09:40:59 +02:00

20 lines
546 B
Plaintext

import python
import semmle.python.dataflow.new.DataFlow
import TestUtilities.InlineExpectationsTest
import TestUtilities.dataflow.testConfig
module CaptureTest implements TestSig {
string getARelevantTag() { result = "captured" }
predicate hasActualResult(Location location, string element, string tag, string value) {
exists(DataFlow::Node sink | TestFlow::flowTo(sink) |
location = sink.getLocation() and
tag = "captured" and
value = "" and
element = sink.toString()
)
}
}
import MakeTest<CaptureTest>