User`s guide

20 Excluding Model Objects From Coverage
20-12
Filter Model Objects to Refine Coverage Results
In this section...
“About the Example Model” on page 20-12
“Simulate Example Model and Review Coverage” on page 20-12
“Filter a Stateflow Transition” on page 20-13
“Filter a Stateflow Event” on page 20-15
“Filter Library Reference Blocks” on page 20-19
“Filter a Subsystem” on page 20-20
“Filter a Specific Block” on page 20-21
About the Example Model
In this example, when you simulate the slvnvdemo_covfilt model, the model does
not record 100% coverage. In subsequent steps, you filter certain objects from recording
coverage. These steps allow you to focus on specific parts of the model to test for
coverage.
The slvnvdemo_covfilt model is configured to record and report coverage during
simulation for the following coverage metrics:
Decision coverage
Condition coverage
Modified condition/decision coverage (MCDC)
Simulate Example Model and Review Coverage
To identify areas of your model that do not record 100% coverage, simulate the model and
record coverage.
1
Open the example model:
slvnvdemo_covfilt
2
Select Simulation > Run.