polyspace.test.ConditionCoverageInfo Class
Namespace: polyspace.test
Description
This Python® class contains condition coverage results obtained from executing C/C++ tests. Depending on how you create an object of this class, the results can show the condition coverage for an entire project, a single file, or a single function.
Creation
Syntax
Description
conditionCoverageInfo = coverageResults.getCoverageInfo("condition") loads condition coverage results for the entire project:
From a
polyspace.test.CoverageResultsobjectcoverageResults.To a
polyspace.test.ConditionCoverageInfoobjectconditionCoverageInfo.
conditionCoverageInfo = coverageResults.getCoverageInfo("condition", fileName) loads condition 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.ConditionCoverageInfoobjectconditionCoverageInfo.
conditionCoverageInfo = coverageResults.getCoverageInfo("condition", fileName, functionName) loads condition coverage results for the file fileName and function functionName:
From a
polyspace.test.CoverageResultsobjectcoverageResults.To a
polyspace.test.ConditionCoverageInfoobjectconditionCoverageInfo.
Properties
Examples
Version History
Introduced in R2024b