polyspace.test.DecisionCoverageInfo Class
Namespace: polyspace.test
Description
This Python® class contains decision coverage results obtained from executing C/C++ tests. Depending on how you create the object, the results can show the decision coverage for an entire project, a single file, or a single function.
Creation
Syntax
Description
decisionCoverageInfo = coverageResults.getCoverageInfo("decision") loads decision coverage results for the entire project:
From a
polyspace.test.CoverageResultsobjectcoverageResults.To a
polyspace.test.DecisionCoverageInfoobjectdecisionCoverageInfo.
decisionCoverageInfo = coverageResults.getCoverageInfo("decision", fileName) loads decision coverage results for the file fileName (specified by full path or path relative to the current working folder):
From a
polyspace.test.CoverageResultsobjectcoverageResults.To a
polyspace.test.DecisionCoverageInfoobjectdecisionCoverageInfo.
decisionCoverageInfo = coverageResults.getCoverageInfo("decision", fileName, functionName) loads decision coverage results for the file fileName and function functionName:
From a
polyspace.test.CoverageResultsobjectcoverageResults.To a
polyspace.test.DecisionCoverageInfoobjectdecisionCoverageInfo.
Properties
Examples
Version History
Introduced in R2024b