Skip to content

Commit e0e405b

Browse files
committed
Python: replace dataflow-test location in files
1 parent ce711f7 commit e0e405b

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

config/identical-files.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@
362362
"java/ql/lib/semmle/code/java/security/internal/EncryptionKeySizes.qll"
363363
],
364364
"Python model summaries test extension": [
365-
"python/ql/test/experimental/dataflow/model-summaries/InlineTaintTest.ext.yml",
366-
"python/ql/test/experimental/dataflow/model-summaries/NormalDataflowTest.ext.yml"
365+
"python/ql/test/library-tests/dataflow/model-summaries/InlineTaintTest.ext.yml",
366+
"python/ql/test/library-tests/dataflow/model-summaries/NormalDataflowTest.ext.yml"
367367
]
368-
}
368+
}

python/ql/lib/semmle/python/dataflow/new/SensitiveDataSources.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private module SensitiveDataModeling {
8989
*/
9090
DataFlow::Node sensitiveLookupStringConst(SensitiveDataClassification classification) {
9191
// Note: If this is implemented with type-tracking, we will get cross-talk as
92-
// illustrated in python/ql/test/experimental/dataflow/sensitive-data/test.py
92+
// illustrated in python/ql/test/library-tests/dataflow/sensitive-data/test.py
9393
exists(DataFlow::LocalSourceNode source |
9494
source.asExpr().(StringLiteral).getText() = sensitiveString(classification) and
9595
source.flowsTo(result)

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPublic.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ newtype TContent =
638638
// name = any(AccessPathToken a).getAnArgument("Attribute")
639639
// instead we use a qltest to alert if we write a new summary in QL that uses an
640640
// attribute -- see
641-
// python/ql/test/experimental/dataflow/summaries-checks/missing-attribute-content.ql
641+
// python/ql/test/library-tests/dataflow/summaries-checks/missing-attribute-content.ql
642642
attr in ["re", "string", "pattern"]
643643
or
644644
//

python/ql/test/library-tests/dataflow/coverage/datamodel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# A thorough covering of methods in that document is found in classes.py.
77
#
88
# Intended sources should be the variable `SOURCE` and intended sinks should be
9-
# arguments to the function `SINK` (see python/ql/test/experimental/dataflow/testConfig.qll).
9+
# arguments to the function `SINK` (see python/ql/test/library-tests/dataflow/testConfig.qll).
1010

1111
import sys
1212
import os

python/ql/test/library-tests/dataflow/coverage/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Headings refer to https://docs.python.org/3/reference/expressions.html,
33
# and are selected whenever they incur dataflow.
44
# Intended sources should be the variable `SOURCE` and intended sinks should be
5-
# arguments to the function `SINK` (see python/ql/test/experimental/dataflow/testConfig.qll).
5+
# arguments to the function `SINK` (see python/ql/test/library-tests/dataflow/testConfig.qll).
66
#
77
# Functions whose name ends with "_with_local_flow" will also be tested for local flow.
88
#
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import base64
22

3-
# TODO: These tests should be merged with python/ql/test/experimental/dataflow/tainttracking/defaultAdditionalTaintStep-py3/test_string.py
3+
# TODO: These tests should be merged with python/ql/test/library-tests/dataflow/tainttracking/defaultAdditionalTaintStep-py3/test_string.py
44
base64.a85decode(payload) # $ decodeInput=payload decodeOutput=base64.a85decode(..) decodeFormat=Ascii85
55
base64.b85decode(payload) # $ decodeInput=payload decodeOutput=base64.b85decode(..) decodeFormat=Base85
66
base64.decodebytes(payload) # $ decodeInput=payload decodeOutput=base64.decodebytes(..) decodeFormat=Base64
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import base64
22

3-
# TODO: These tests should be merged with python/ql/test/experimental/dataflow/tainttracking/defaultAdditionalTaintStep-py3/test_string.py
3+
# TODO: These tests should be merged with python/ql/test/library-tests/dataflow/tainttracking/defaultAdditionalTaintStep-py3/test_string.py
44
base64.a85encode(bs) # $ encodeInput=bs encodeOutput=base64.a85encode(..) encodeFormat=Ascii85
55
base64.b85encode(bs)# $ encodeInput=bs encodeOutput=base64.b85encode(..) encodeFormat=Base85
66
base64.encodebytes(bs)# $ encodeInput=bs encodeOutput=base64.encodebytes(..) encodeFormat=Base64

python/ql/test/library-tests/frameworks/stdlib/Decoding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
shelve.open(filepath) # $ decodeInput=filepath decodeOutput=shelve.open(..) decodeFormat=pickle decodeMayExecuteInput getAPathArgument=filepath
2727
shelve.open(filename=filepath) # $ decodeInput=filepath decodeOutput=shelve.open(..) decodeFormat=pickle decodeMayExecuteInput getAPathArgument=filepath
2828

29-
# TODO: These tests should be merged with python/ql/test/experimental/dataflow/tainttracking/defaultAdditionalTaintStep/test_string.py
29+
# TODO: These tests should be merged with python/ql/test/library-tests/dataflow/tainttracking/defaultAdditionalTaintStep/test_string.py
3030
base64.b64decode(payload) # $ decodeInput=payload decodeOutput=base64.b64decode(..) decodeFormat=Base64
3131
base64.standard_b64decode(payload) # $ decodeInput=payload decodeOutput=base64.standard_b64decode(..) decodeFormat=Base64
3232
base64.urlsafe_b64decode(payload) # $ decodeInput=payload decodeOutput=base64.urlsafe_b64decode(..) decodeFormat=Base64

python/ql/test/library-tests/frameworks/stdlib/Encoding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
pickle.dumps(obj) # $ MISSING: encodeInput=obj encodeOutput=pickle.dumps(..) encodeFormat=pickle encodeMayExecuteInput
66
marshal.dumps(obj) # $ MISSING: encodeInput=obj encodeOutput=marshal.dumps(..) encodeFormat=marshal encodeMayExecuteInput
77

8-
# TODO: These tests should be merged with python/ql/test/experimental/dataflow/tainttracking/defaultAdditionalTaintStep/test_string.py
8+
# TODO: These tests should be merged with python/ql/test/library-tests/dataflow/tainttracking/defaultAdditionalTaintStep/test_string.py
99
base64.b64encode(bs) # $ encodeInput=bs encodeOutput=base64.b64encode(..) encodeFormat=Base64
1010
base64.standard_b64encode(bs) # $ encodeInput=bs encodeOutput=base64.standard_b64encode(..) encodeFormat=Base64
1111
base64.urlsafe_b64encode(bs) # $ encodeInput=bs encodeOutput=base64.urlsafe_b64encode(..) encodeFormat=Base64

0 commit comments

Comments
 (0)