CodeQL library for Python
codeql/python-all 1.0.1 (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)