Main Content

Collect Coverage for Models

Measure coverage for models, identify untested elements of your design

Collect coverage during simulation to measure which elements in your model or Stateflow®charts are tested.金宝app®Coverage™measures several types of coverage, such as execution, decision, condition, and modified condition/decision coverage. The most basic coverage level determines whether an item executes during simulation, while more extensive coverage levels determine whether individual logical conditions are fully exercised and independently affect the output of logical expressions.

Functions

expand all

sim Simulate a金宝appmodel
cvtest Create model coverage test specification object
cvsim Simulate and return model coverage results for test objects
cvdata Access金宝appCoveragedata in theMATLABworkspace
cvexit Exit coverage environment
parsim Simulate dynamic system multiple times in parallel or serial
slvnvlogsignals Log test data for component or model during simulation
slvnvmergedata Combine test data from data files
slvnvmakeharness Generate金宝appCoverageharness model
slvnvharnessopts Generate default options forslvnvmakeharness
slvnvmergeharness Combine test data from harness models
slvnvruntest Simulate model by using input data
slvnvruncgvtest Invoke Code Generation Verification (CGV) API and execute model
slvnvruntestopts Generate simulation or execution options forslvnvruntestorslvnvruncgvtest
slvnvextract Extract atomic subsystem or subchart contents into new model

Topics

Model Coverage Definitions

Using Model Coverage

Model Coverage for Stateflow Charts