mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Add concepts tests + some fixes
This commit is contained in:
@@ -663,6 +663,20 @@ module CorsMiddlewareTest implements TestSig {
|
||||
}
|
||||
}
|
||||
|
||||
module TemplateConstructionTest implements TestSig {
|
||||
string getARelevantTag() { result = "templateConstruction" }
|
||||
|
||||
predicate hasActualResult(Location location, string element, string tag, string value) {
|
||||
exists(location.getFile().getRelativePath()) and
|
||||
exists(TemplateConstruction tc |
|
||||
location = tc.getLocation() and
|
||||
element = tc.toString() and
|
||||
value = prettyNodeForInlineTest(tc.getSourceArg()) and
|
||||
tag = "templateConstruction"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
import MakeTest<MergeTests5<MergeTests5<SystemCommandExecutionTest, DecodingTest, EncodingTest, LoggingTest,
|
||||
CodeExecutionTest>,
|
||||
MergeTests5<SqlConstructionTest, SqlExecutionTest, XPathConstructionTest, XPathExecutionTest,
|
||||
@@ -673,4 +687,5 @@ import MakeTest<MergeTests5<MergeTests5<SystemCommandExecutionTest, DecodingTest
|
||||
MergeTests5<FileSystemAccessTest, FileSystemWriteAccessTest, PathNormalizationTest,
|
||||
SafeAccessCheckTest, PublicKeyGenerationTest>,
|
||||
MergeTests5<CryptographicOperationTest, HttpClientRequestTest, CsrfProtectionSettingTest,
|
||||
CsrfLocalProtectionSettingTest, MergeTests<XmlParsingTest, ThreatModelSourceTest>>>>
|
||||
CsrfLocalProtectionSettingTest,
|
||||
MergeTests3<XmlParsingTest, ThreatModelSourceTest, TemplateConstructionTest>>>>
|
||||
|
||||
Reference in New Issue
Block a user