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