Skip to content

Commit 9bd00c9

Browse files
Change Gradio rfs test to use shared rfs test module
1 parent 2a6ad00 commit 9bd00c9

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,2 @@
11
import python
2-
import semmle.python.dataflow.new.RemoteFlowSources
3-
import TestUtilities.InlineExpectationsTest
4-
private import semmle.python.dataflow.new.internal.PrintNode
5-
6-
module SourceTest implements TestSig {
7-
string getARelevantTag() { result = "source" }
8-
9-
predicate hasActualResult(Location location, string element, string tag, string value) {
10-
exists(location.getFile().getRelativePath()) and
11-
exists(RemoteFlowSource rfs |
12-
location = rfs.getLocation() and
13-
element = rfs.toString() and
14-
value = prettyNode(rfs) and
15-
tag = "source"
16-
)
17-
}
18-
}
19-
20-
import MakeTest<SourceTest>
2+
import experimental.meta.RemoteFlowSourceTest

0 commit comments

Comments
 (0)