CodeQL library for Python
codeql/python-all 3.0.1-dev (changelog, source)
Search

Module NormalDataflowTest

Import path

import utils.test.dataflow.NormalDataflowTest

Imports

FlowTest
MakeTest<FlowTest::MakeTestSig<NormalDataflowTest::DataFlowTest>>

The module for tests with inline expectations. The test implements the signature to provide the actual results of the query, which are then compared with the expected results in comments to produce a list of failure messages that point out where the actual results differ from the expected results.

python
testConfig

Configuration to test selected data flow Sources in the source code are denoted by the special name SOURCE, and sinks are denoted by arguments to the special function SINK. For example, given the test code python def test(): s = SOURCE SINK(s) SOURCE will be a source and the second occurrence of s will be a sink.

Predicates

Modules