主要内容

table

R2026b

Create table of coverage results from redesigned Test Manager coverage results (Tech Preview)

Since R2026b

Description

Note

The redesigned Simulink® Test Manager is a tech preview in R2026b. The primary purpose of the tech preview is to provide early access to the most common testing workflows. For more information about supported workflows, see Overview of the Redesigned Simulink Test Manager (Tech Preview).

To enable the feature, click the New Test Manager button in the existing Test Manager or use the sltest.stmv2.open function at the command line.

tbl = table(covResult) generates a table that contains the coverage results, covResult. The table includes one row for each analyzed model, and columns for the model name, checksum, and each enabled coverage metric.

Examples

collapse all

Retrieve a coverage table from a result set and sort the data to find the models that have the most unsatisfied decision coverage objectives.

Get the coverage data from the most recent result set.

rs = sltest.stmv2.results.getAllResultSets();
cr = rs(end).getCoverageResult();
t = cr.table();

Sort the table to find models with the most unsatisfied decision objectives.

sortrows(t,"Decision_Unsatisfied","descend")

Input Arguments

collapse all

Coverage results, specified as an slcoverage.stmv2.CoverageResult object.

Output Arguments

collapse all

Coverage results, returned as a table. The table contains one row for each analyzed model and these columns:

  • AnalyzedModel — Name of the analyzed model, returned as a string

  • Checksum — Model checksum, returned as a string

For each enabled metric, the table also includes these columns:

  • Metric_Unsatisfied — Number of unsatisfied objectives, returned as a 32-bit unsigned integer

  • Metric_Justified — Number of justified objectives, returned as a 32-bit unsigned integer

  • Metric_Total — Total number of objectives, returned as a 32-bit unsigned integer

If there are no coverage results, the table has zero rows and the AnalyzedModel and Checksum columns.

Data Types: table

Version History

Introduced in R2026b