File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
go/ql/test/library-tests/semmle/go/frameworks/gqlgen Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
1
import go
2
+ import TestUtilities.InlineExpectationsTest
2
3
3
- from Gqlgen:: ResolverParameter p
4
- select p
4
+ 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 >
You can’t perform that action at this time.
0 commit comments