We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b6308e commit 7a54755Copy full SHA for 7a54755
1 file changed
go/ql/test/library-tests/semmle/go/frameworks/gqlgen/gqlgen.ql
@@ -1,4 +1,18 @@
1
import go
2
+import TestUtilities.InlineExpectationsTest
3
-from Gqlgen::ResolverParameter p
4
-select p
+module UntrustedFlowSourceTest implements TestSig {
5
+ string getARelevantTag() { result = "resolverParameter" }
6
+
7
+ predicate hasActualResult(Location location, string element, string tag, string value) {
8
+ tag = "resolverParameter" and
9
+ exists(Gqlgen::ResolverParameter p |
10
+ element = p.toString() and
11
+ value = "\"" + p.toString() + "\"" and
12
+ p.hasLocationInfo(location.getFile().getAbsolutePath(), location.getStartLine(),
13
+ location.getStartColumn(), location.getEndLine(), location.getEndColumn())
14
+ )
15
+ }
16
+}
17
18
+import MakeTest<UntrustedFlowSourceTest>
0 commit comments