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

Predicate test_contains

Hold if expr is a test (a branch) and use is within that test

Import path

import python
predicate test_contains(ControlFlowNode expr, ControlFlowNode use)