Skip to content

Commit e08ab32

Browse files
committed
C#/Java: Use test utilities shipped with CodeQL.
1 parent 20ef757 commit e08ab32

File tree

52 files changed

+46
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+46
-154
lines changed

csharp/test/TestUtilities/PrettyPrintModels.ql

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-328/WeakHashingAlgorithms.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-328/WeakPasswordHashing.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-328/WeakSensitiveDataHashing.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-759/HashWithoutSalt.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-760/HardcodedSalt.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql

java/test/TestUtilities/InlineExpectationsTest.qll

Lines changed: 0 additions & 8 deletions
This file was deleted.

java/test/TestUtilities/InlineFlowTest.qll

Lines changed: 0 additions & 36 deletions
This file was deleted.

java/test/TestUtilities/InlineMadTest.qll

Lines changed: 0 additions & 16 deletions
This file was deleted.

java/test/TestUtilities/PrettyPrintModels.ql

Lines changed: 0 additions & 6 deletions
This file was deleted.

java/test/TestUtilities/internal/InlineExpectationsTestImpl.qll

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-020/Log4jJndiInjection.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql

java/test/security/CWE-022/TaintedPath.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import java
2-
import TestUtilities.InlineFlowTest
2+
import utils.test.InlineFlowTest
33
import semmle.code.java.security.TaintedPathQuery
44
import TaintFlowTestArgString<TaintedPathConfig, getArgString/2>
55

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-073/FilePathInjection.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-078/CommandInjectionRuntimeExecLocal.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-078/CommandInjectionRuntimeExecTest.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-078/CommandInjectionRuntimeExecTestPath.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-078/ExecTainted.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-089/MyBatisAnnotationSqlInjection.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-089/MyBatisMapperXmlSqlInjection.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-094/BeanShellInjection.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-094/JShellInjection.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-094/JakartaExpressionInjection.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-094/JythonInjection.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-094/ScriptInjection.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-1004/SensitiveCookieNotHttpOnly.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-200/InsecureWebResourceResponse.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-200/SensitiveAndroidFileLeak.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-208/PossibleTimingAttackAgainstSignature.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-208/TimingAttackAgainstSignature.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-299/DisabledRevocationChecking.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-326/Base64Encryption.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-327/UnsafeTlsVersion.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-346/UnvalidatedCors.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-347/Auth0NoVerifier.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-348/ClientSuppliedIpUsedInSecurityCheck.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-352/JsonpInjection.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-400/LocalThreadResourceAbuse.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-400/ThreadResourceAbuse.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-470/LoadClassNoSignatureCheck.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-470/UnsafeReflection.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-502/UnsafeDeserializationRmi.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql

java/test/security/CWE-522-DecompressionBombs/TestDecompressionBombs.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import java
22
import semmle.code.java.security.DecompressionBombQuery
3-
import TestUtilities.InlineFlowTest
3+
import utils.test.InlineFlowTest
44
import TaintFlowTestArgString<DecompressionBombsConfig, getArgString/2>
55

66
string getArgString(DataFlow::Node src, DataFlow::Node sink) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-532/SensitiveInformation.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-598/SensitiveGetQuery.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-600/UncaughtServletException.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-601/SpringUrlRedirect.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-611/XXELocal.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-625/PermissiveDotRegex.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-652/XQueryInjection.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-755/NFEAndroidDoS.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
query: security/CWE-759/HashWithoutSalt.ql
2-
postprocess: TestUtilities/PrettyPrintModels.ql
2+
postprocess: utils/test/PrettyPrintModels.ql

0 commit comments

Comments
 (0)