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