Apply suggestions from code review

Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com>
This commit is contained in:
Alvaro Muñoz
2023-07-13 21:32:56 +02:00
committed by GitHub
parent 1b6308e32f
commit 7a54755c1b

View File

@@ -1,4 +1,18 @@
import go
import TestUtilities.InlineExpectationsTest
from Gqlgen::ResolverParameter p
select p
module UntrustedFlowSourceTest implements TestSig {
string getARelevantTag() { result = "resolverParameter" }
predicate hasActualResult(Location location, string element, string tag, string value) {
tag = "resolverParameter" and
exists(Gqlgen::ResolverParameter p |
element = p.toString() and
value = "\"" + p.toString() + "\"" and
p.hasLocationInfo(location.getFile().getAbsolutePath(), location.getStartLine(),
location.getStartColumn(), location.getEndLine(), location.getEndColumn())
)
}
}
import MakeTest<UntrustedFlowSourceTest>