Change Gradio rfs test to use shared rfs test module

This commit is contained in:
Sylwia Budzynska
2024-07-31 13:25:32 +02:00
parent 2a6ad00a2f
commit 9bd00c9e1e

View File

@@ -1,20 +1,2 @@
import python
import semmle.python.dataflow.new.RemoteFlowSources
import TestUtilities.InlineExpectationsTest
private import semmle.python.dataflow.new.internal.PrintNode
module SourceTest implements TestSig {
string getARelevantTag() { result = "source" }
predicate hasActualResult(Location location, string element, string tag, string value) {
exists(location.getFile().getRelativePath()) and
exists(RemoteFlowSource rfs |
location = rfs.getLocation() and
element = rfs.toString() and
value = prettyNode(rfs) and
tag = "source"
)
}
}
import MakeTest<SourceTest>
import experimental.meta.RemoteFlowSourceTest