cvload
Load coverage tests and stored results into memory
Description
[
loads the tests and data stored in the specified file.covSettings,covData] = cvload(fileName)
[
restores or clears the cumulative results from prior runs depending on the value of
covSettings,covData] = cvload(fileName,restoreTotal)restoreTotal.
Note
When using the cvload command:
If a model with the same name exists in the coverage database,
cvloadonly loads the compatible results that reference the existing model to prevent duplication.If the Simulink® models referenced from the file are open, but do not exist in the coverage database,
cvloadresolves the links to the existing models.When you are loading several files that reference the same model,
cvloadonly loads the results that are consistent with the earlier files.Starting in R2020b, you can load coverage data created in R2017b or later. You can aggregate coverage data from two or more
cvdataobjects for the same model if thedbVersionproperties match.
Examples
Input Arguments
Output Arguments
Alternatives
You can load existing coverage data in the Coverage Results Explorer:
Open the model for which you want to load existing coverage data.
In the Apps tab, select Coverage Analyzer.
In the Coverage tab, select Results Explorer.
In the Coverage Results Explorer, right click Data Repository and select Load coverage data.
Select the coverage data file that you want to load.