CodeQL library for C/C++
codeql/cpp-all 3.0.1-dev (changelog, source)
Search

Predicate AstFlowTest::hasActualResult

Returns the actual results of the query that is being tested. Each result consist of the following values:

  • location - The source code location of the result. Any expected result comment must appear on the start line of this location.
  • element - Display text for the element on which the result is reported.
  • tag - The tag that marks this result as coming from this test. This must be one of the tags returned by getARelevantTag().
  • value - The value of the result, which will be matched against the value associated with tag in any expected result comment on that line.

Import path

import utils.test.dataflow.FlowTestCommon
predicate hasActualResult(Location location, string element, string tag, string value)