SIL Coverage Fragment
This metric returns the coverage measured in the software-in-the-loop (SIL) test results for each model in 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 coverage missed by the SIL tests.
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.
To collect data for this metric, use
getMetrics with the metric ID
Collecting data for this metric loads the model file and test results files and requires a Simulink® Coverage™ license.
For this metric, instances of
Value as a
struct that contains fields for:
Statement— Statement coverage
Decision— Decision coverage
Condition— Condition coverage
MCDC— Modified condition/decision coverage (MC/DC)
Function— Function coverage
FunctionCall— Function call coverage
Note that the metric returns instances of
metric.Result for each
model in the unit.
Each field contains a
struct that contains these fields:
Achieved— Percentage of coverage achieved by SIL tests
Justified— Percentage of coverage justified by SIL tests
Missed— Percentage of coverage missed by SIL tests
AchievedOrJustified— Percentage of coverage completed by SIL tests. The dashboard considers coverage completed if the coverage is either achieved or justified.
This metric does not have predefined thresholds.