Main Content

Manage Coverage Data

Access, manage, and aggregate coverage results

You can use Simulink® Coverage™ to access, manage, and aggregate coverage results. You can also assess testing completeness by aggregating coverage data from multiple test runs.

Objects

cvdataAccess Simulink Coverage data in the MATLAB workspace
cv.cvdatagroupCreate collection of cvdata objects for model reference hierarchy

Functions

expand all

cvloadLoad coverage tests and stored results into memory
cvsaveSave coverage settings and results to file
cvresultsReturns active coverage data, clears and loads active coverage data from a file
executioninfoRetrieve execution coverage information from cvdata object
conditioninfoRetrieve condition coverage information from cvdata object
decisioninfoRetrieve decision coverage information from cvdata object
mcdcinfoRetrieve modified condition/decision coverage information from cvdata object
getCoverageInfoRetrieve coverage information for Simulink Design Verifier blocks from cvdata object
complexityinfoRetrieve cyclomatic complexity coverage information from cvdata object
overflowsaturationinfoRetrieve saturation on integer overflow coverage from cvdata object
relationalboundaryinfoRetrieve relational boundary coverage from cvdata object
sigrangeinfoRetrieve signal range coverage information from cvdata object
sigsizeinfoRetrieve signal size coverage information from cvdata object
tableinfoRetrieve lookup table coverage information from cvdata object
extractExtract subsystem coverage data from system-level coverage data

Topics

Access, Manage, and Aggregate Coverage Results

Access, manage, and aggregate coverage results from the Results Explorer after you collect coverage.

Programmatically Retrieve Coverage Details from Results

Retrieve specific coverage information after simulation using MATLAB® commands.

Collect Coverage in Tests (Simulink Test)

Use coverage measurement to assess the extent of your tests.

Extracting Detailed Information from Coverage Data

This example shows how coverage utility commands can be used to extract information for an individual subsystem, block, or Stateflow® object from cvdata objects.

Featured Examples