mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Update all test util paths to point to the new location.
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
query: experimental/Security Features/CWE-759/HashWithoutSalt.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import csharp
|
||||
import TestUtilities.ProvenancePathGraph::ShowProvenance<Taint::PathNode, Taint::PathGraph>
|
||||
import utils.test.ProvenancePathGraph::ShowProvenance<Taint::PathNode, Taint::PathGraph>
|
||||
|
||||
class MySink extends DataFlow::ExprNode {
|
||||
MySink() {
|
||||
|
||||
@@ -17,7 +17,7 @@ class StringConstCompareBarrier extends DataFlow::Node {
|
||||
}
|
||||
}
|
||||
|
||||
import TestUtilities.InlineFlowTest
|
||||
import utils.test.InlineFlowTest
|
||||
import PathGraph
|
||||
|
||||
module FlowConfig implements DataFlow::ConfigSig {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import csharp
|
||||
import TestUtilities.ProvenancePathGraph::ShowProvenance<ArrayFlow::PathNode, ArrayFlow::PathGraph>
|
||||
import utils.test.ProvenancePathGraph::ShowProvenance<ArrayFlow::PathNode, ArrayFlow::PathGraph>
|
||||
|
||||
module ArrayFlowConfig implements DataFlow::ConfigSig {
|
||||
predicate isSource(DataFlow::Node src) { src.asExpr() instanceof ObjectCreation }
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import csharp
|
||||
import TestUtilities.InlineFlowTest
|
||||
import utils.test.InlineFlowTest
|
||||
import ValueFlowTest<DefaultFlowConfig>
|
||||
import PathGraph
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import csharp
|
||||
import semmle.code.csharp.dataflow.internal.ExternalFlow
|
||||
import TestUtilities.ProvenancePathGraph::ShowProvenance<Taint::PathNode, Taint::PathGraph>
|
||||
import utils.test.ProvenancePathGraph::ShowProvenance<Taint::PathNode, Taint::PathGraph>
|
||||
import ModelValidation
|
||||
|
||||
module TaintConfig implements DataFlow::ConfigSig {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import csharp
|
||||
import TestUtilities.InlineFlowTest
|
||||
import utils.test.InlineFlowTest
|
||||
import DefaultFlowTest
|
||||
import PathGraph
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import csharp
|
||||
import semmle.code.csharp.security.dataflow.flowsources.FlowSources
|
||||
import TestUtilities.InlineFlowTest
|
||||
import utils.test.InlineFlowTest
|
||||
import TaintFlowTest<DatabaseConfig>
|
||||
|
||||
module DatabaseConfig implements DataFlow::ConfigSig {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import csharp
|
||||
import semmle.code.csharp.security.dataflow.flowsources.FlowSources
|
||||
import TestUtilities.InlineFlowTest
|
||||
import utils.test.InlineFlowTest
|
||||
import TaintFlowTest<FilesConfig>
|
||||
|
||||
module FilesConfig implements DataFlow::ConfigSig {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import csharp
|
||||
import Common
|
||||
import TestUtilities.ProvenancePathGraph::ShowProvenance<Flow::PathNode, Flow::PathGraph>
|
||||
import utils.test.ProvenancePathGraph::ShowProvenance<Flow::PathNode, Flow::PathGraph>
|
||||
|
||||
from Flow::PathNode source, Flow::PathNode sink, string s
|
||||
where
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import csharp
|
||||
import Common
|
||||
import TestUtilities.ProvenancePathGraph::ShowProvenance<Taint::PathNode, Taint::PathGraph>
|
||||
import utils.test.ProvenancePathGraph::ShowProvenance<Taint::PathNode, Taint::PathGraph>
|
||||
|
||||
module Taint = TaintTracking::Global<FlowConfig>;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import csharp
|
||||
import TestUtilities.InlineFlowTest
|
||||
import utils.test.InlineFlowTest
|
||||
import DefaultFlowTest
|
||||
import PathGraph
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import csharp
|
||||
import TestUtilities.InlineFlowTest
|
||||
import utils.test.InlineFlowTest
|
||||
import DefaultFlowTest
|
||||
import PathGraph
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import Test
|
||||
import TestUtilities.ProvenancePathGraph::ShowProvenance<ThreatModel::PathNode, ThreatModel::PathGraph>
|
||||
import utils.test.ProvenancePathGraph::ShowProvenance<ThreatModel::PathNode, ThreatModel::PathGraph>
|
||||
|
||||
from ThreatModel::PathNode source, ThreatModel::PathNode sink
|
||||
where ThreatModel::flowPath(source, sink)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import Test
|
||||
import TestUtilities.ProvenancePathGraph::ShowProvenance<ThreatModel::PathNode, ThreatModel::PathGraph>
|
||||
import utils.test.ProvenancePathGraph::ShowProvenance<ThreatModel::PathNode, ThreatModel::PathGraph>
|
||||
|
||||
from ThreatModel::PathNode source, ThreatModel::PathNode sink
|
||||
where ThreatModel::flowPath(source, sink)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import Test
|
||||
import TestUtilities.ProvenancePathGraph::ShowProvenance<ThreatModel::PathNode, ThreatModel::PathGraph>
|
||||
import utils.test.ProvenancePathGraph::ShowProvenance<ThreatModel::PathNode, ThreatModel::PathGraph>
|
||||
|
||||
from ThreatModel::PathNode source, ThreatModel::PathNode sink
|
||||
where ThreatModel::flowPath(source, sink)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import Test
|
||||
import TestUtilities.ProvenancePathGraph::ShowProvenance<ThreatModel::PathNode, ThreatModel::PathGraph>
|
||||
import utils.test.ProvenancePathGraph::ShowProvenance<ThreatModel::PathNode, ThreatModel::PathGraph>
|
||||
|
||||
from ThreatModel::PathNode source, ThreatModel::PathNode sink
|
||||
where ThreatModel::flowPath(source, sink)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import Test
|
||||
import TestUtilities.ProvenancePathGraph::ShowProvenance<ThreatModel::PathNode, ThreatModel::PathGraph>
|
||||
import utils.test.ProvenancePathGraph::ShowProvenance<ThreatModel::PathNode, ThreatModel::PathGraph>
|
||||
|
||||
from ThreatModel::PathNode source, ThreatModel::PathNode sink
|
||||
where ThreatModel::flowPath(source, sink)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
import Test
|
||||
import TestUtilities.ProvenancePathGraph::ShowProvenance<ThreatModel::PathNode, ThreatModel::PathGraph>
|
||||
import utils.test.ProvenancePathGraph::ShowProvenance<ThreatModel::PathNode, ThreatModel::PathGraph>
|
||||
|
||||
from ThreatModel::PathNode source, ThreatModel::PathNode sink
|
||||
where ThreatModel::flowPath(source, sink)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import csharp
|
||||
import TestUtilities.InlineFlowTest
|
||||
import utils.test.InlineFlowTest
|
||||
import DefaultFlowTest
|
||||
import PathGraph
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import csharp
|
||||
import TestUtilities.InlineFlowTest
|
||||
import utils.test.InlineFlowTest
|
||||
import DefaultFlowTest
|
||||
import PathGraph
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import csharp
|
||||
import TestUtilities.InlineFlowTest
|
||||
import utils.test.InlineFlowTest
|
||||
import PathGraph
|
||||
|
||||
module TypesConfig implements DataFlow::ConfigSig {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import csharp
|
||||
import TestUtilities.ProvenancePathGraph::ShowProvenance<Taint::PathNode, Taint::PathGraph>
|
||||
import utils.test.ProvenancePathGraph::ShowProvenance<Taint::PathNode, Taint::PathGraph>
|
||||
|
||||
module TaintConfig implements DataFlow::ConfigSig {
|
||||
predicate isSource(DataFlow::Node node) { node.asExpr().getValue() = "tainted" }
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-020/UntrustedDataToExternalAPI.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
query: Security Features/CWE-022/TaintedPath.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-022/ZipSlip.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-078/CommandInjection.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-079/XSS.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
query: Security Features/CWE-079/XSS.ql
|
||||
postprocess:
|
||||
- TestUtilities/PrettyPrintModels.ql
|
||||
- TestUtilities/InlineExpectationsTestQuery.ql
|
||||
- utils/test/PrettyPrintModels.ql
|
||||
- utils/test/InlineExpectationsTestQuery.ql
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-079/XSS.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-089/SqlInjection.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-090/LDAPInjection.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-091/XMLInjection.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-094/CodeInjection.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-099/ResourceInjection.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-112/MissingXMLValidation.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-114/AssemblyPathInjection.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-117/LogForging.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-134/UncontrolledFormatString.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-201/ExposureInTransmittedData.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-209/ExceptionInformationExposure.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-321/HardcodedEncryptionKey.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/InsecureRandomness.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-502/UnsafeDeserializationUntrustedInput.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-502/UnsafeDeserializationUntrustedInput.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-601/UrlRedirect.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-611/UntrustedDataInsecureXml.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-611/UseXmlSecureResolver.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-643/XPathInjection.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-730/ReDoS.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-730/ReDoS.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-730/RegexInjection.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-807/ConditionalBypass.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Security Features/CWE-838/InappropriateEncoding.ql
|
||||
postprocess: TestUtilities/PrettyPrintModels.ql
|
||||
postprocess: utils/test/PrettyPrintModels.ql
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
query: Useless code/UnusedLabel.ql
|
||||
postprocess: TestUtilities/InlineExpectationsTestQuery.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
@@ -1,2 +1,2 @@
|
||||
query: utils/inline-tests/queries/PathProblemQuery.ql
|
||||
postprocess: TestUtilities/InlineExpectationsTestQuery.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
@@ -1,2 +1,2 @@
|
||||
query: utils/inline-tests/queries/ProblemQuery.ql
|
||||
postprocess: TestUtilities/InlineExpectationsTestQuery.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
@@ -1,6 +1,6 @@
|
||||
import csharp
|
||||
import utils.modelgenerator.internal.CaptureModels
|
||||
import TestUtilities.InlineMadTest
|
||||
import utils.test.InlineMadTest
|
||||
|
||||
module InlineMadTestConfig implements InlineMadTestConfigSig {
|
||||
string getCapturedModel(Callable c) { result = ContentSensitive::captureFlow(c, _) }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import csharp
|
||||
import utils.modelgenerator.internal.CaptureModels
|
||||
import TestUtilities.InlineMadTest
|
||||
import utils.test.InlineMadTest
|
||||
|
||||
module InlineMadTestConfig implements InlineMadTestConfigSig {
|
||||
string getCapturedModel(Callable c) { result = captureNoFlow(c) }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import csharp
|
||||
import utils.modelgenerator.internal.CaptureModels
|
||||
import TestUtilities.InlineMadTest
|
||||
import utils.test.InlineMadTest
|
||||
|
||||
module InlineMadTestConfig implements InlineMadTestConfigSig {
|
||||
string getCapturedModel(Callable c) { result = captureSink(c) }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import csharp
|
||||
import utils.modelgenerator.internal.CaptureModels
|
||||
import TestUtilities.InlineMadTest
|
||||
import utils.test.InlineMadTest
|
||||
|
||||
module InlineMadTestConfig implements InlineMadTestConfigSig {
|
||||
string getCapturedModel(Callable c) { result = captureSource(c) }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import csharp
|
||||
import utils.modelgenerator.internal.CaptureModels
|
||||
import TestUtilities.InlineMadTest
|
||||
import utils.test.InlineMadTest
|
||||
|
||||
module InlineMadTestConfig implements InlineMadTestConfigSig {
|
||||
string getCapturedModel(Callable c) { result = captureFlow(c) }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import csharp
|
||||
import TestUtilities.InlineMadTest
|
||||
import utils.test.InlineMadTest
|
||||
import utils.modelgenerator.internal.CaptureTypeBasedSummaryModels
|
||||
|
||||
module InlineMadTestConfig implements InlineMadTestConfigSig {
|
||||
|
||||
Reference in New Issue
Block a user