SIL Coverage Breakdown
Metric ID
slcomp.sil.CoverageBreakdown
Description
This metric returns the coverage measured in the software-in-the-loop (SIL) test results, aggregated across the unit. The metric result includes the percentage of coverage achieved by the SIL tests, the percentage of coverage justified in coverage filters, and the percentage of condition coverage missed by the SIL tests.
Supported Artifacts
You can collect this metric for the Units in your project. To control what the dashboard classifies as a unit, see Categorize Models in Hierarchy as Components or Units.
Computation Details
The metric:
Returns aggregated coverage results.
Does not include coverage from tests that run in simulation (model testing) or processor-in-the-loop (PIL) mode.
Returns 100% coverage for models that do not have coverage points.
Collection
To collect data for this metric, use getMetrics
with the metric ID
slcomp.sil.CoverageBreakdown
.
Collecting data for this metric loads the model file and test results files and requires a Simulink® Coverage™ license.
Results
For this metric, instances of metric.Result
return
Value
as a struct
that contains fields for:
Statement
— Aggregated statement coverageDecision
— Aggregated decision coverageCondition
— Aggregated condition coverageMCDC
— Aggregated modified condition/decision coverage (MC/DC)Function
— Aggregated function coverageFunctionCall
— Aggregated function call coverage
Each field contains a struct
that contains these fields:
Achieved
— Percentage of coverage achieved by SIL testsJustified
— Percentage of coverage justified by SIL testsMissed
— Percentage of coverage missed by SIL testsAchievedOrJustified
— Percentage of coverage completed by SIL tests. The dashboard considers coverage completed if the coverage is either achieved or justified.
Compliance Thresholds
The default compliance thresholds for this metric are:
Compliant
— Test results return0%
missed coverageNon-Compliant
— Test results return missed coverageWarning
— None
See Also
SIL Coverage Fragment | SIL Coverage Recap | Code Testing Metrics