Model Objects That Do Not Receive Coverage
Simulink® Coverage™ does not analyze decision, condition, MCDC, or relational boundary coverage for blocks that are not listed in Model Objects That Receive Coverage.
Note
Simulink
Coverage only records model coverage when the Simulation
mode parameter is set to Normal
. If you
have Embedded Coder® installed, Simulink
Coverage can measure the coverage of code generated from models in SIL or PIL
mode. For more information, see Code Coverage for Models in Software-in-the-Loop (SIL) Mode and Processor-in-the-Loop (PIL) Mode.
This table identifies specific model objects that do not receive coverage in certain conditions.
Model object | Does not receive coverage... |
---|---|
Logical Operator block | When the Operator parameter specifies |
Model block | When the Simulation mode parameter specifies
|
Protected model block | Coverage information is not provided for protected model blocks. See also Model Protection (Simulink Coder). |
Subsystem block | When the Read/Write Permissions parameter
is set to |
Stateflow® chart MATLAB® Function block | When debugging/animation is not enabled for the model or object. |
Additional coverage analysis exceptions include:
Virtual blocks do not receive coverage. For more information, see Nonvirtual and Virtual Blocks.
MATLAB files that are obfuscated, for example by using the
pcode
function, do not receive coverage.