Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
CodeQL library for Python
codeql/python-all 4.0.6-dev (changelog, source)

Predicate MakeQueryTest::DataFlowQueryTest::hasOptionalResult

Holds if there is an optional result on the specified location.

This is similar to hasActualResult, but returns results that do not require a matching annotation. A failure will still arise if there is an annotation that does not match any results, but not vice versa. Override this predicate to specify optional results.

Import path

import utils.test.dataflow.DataflowQueryTest
predicate hasOptionalResult(Location location, string element, string tag, string value)