Main Content

getCoverageResults

Class: sltest.testmanager.TestIterationResult
Namespace: sltest.testmanager

Get coverage results

Syntax

covResult = getCoverageResults(resultObj)
covResult = getCoverageResults(resultObj,model)

Description

covResult = getCoverageResults(resultObj) gets the coverage results that belong to the test iteration results object.

covResult = getCoverageResults(resultObj,model) gets the coverage results that belong to the test iteration results object and the specified model.

Input Arguments

expand all

Test iteration results object to get coverage results from, specified as a sltest.testmanager.TestIterationResult object.

Name of a model within the set of coverage results, specified as a character vector.

Example: 'myModel'

Output Arguments

expand all

Coverage results contained in the test iteration result, returned as an array of cvdata objects. For more information on cvdata objects, see cvdata (Simulink Coverage).

Version History

Introduced in R2016a