cvtest
The cvtest
command creates
a test specification object. Once you create the object, you simulate
it with the cvsim
command.
The call to cvtest
has the following default
syntax:
cvto = cvtest(root)
root
is the name of, or a handle to, a Simulink® model
or a subsystem of a model. cvto
is a handle to
the resulting test specification object. Only the specified model
or subsystem and its descendants are subject to model coverage.
To create a test object with a specified label (used for reporting results):
cvto = cvtest(root, label)
To create a test with a setup command:
cvto = cvtest(root, label, setupcmd)
You execute the setup command in the base MATLAB® workspace, just prior to running the instrumented simulation. Use this command for loading data prior to a test.
The returned cvtest
object, cvto
,
has the following structure.
Field | Description |
---|---|
| Read-only internal data-dictionary ID |
| Read-only internal data-dictionary ID |
| Name of the system or subsystem for analysis |
| String for reporting results |
| Command executed prior to simulation |
| Set to 1 for condition coverage |
| Set to 1 for decision coverage |
| Set to |
| Set to 1 for MCDC coverage |
| Set to |
| Set to 1 for signal range coverage |
| Set to |
| Set to 1 for lookup table coverage |
| String specifying one of the following values:
|
| Set to 1 for excluding coverage for the top model |
| String specifying a comma-separated list of referenced
models for which coverage is disabled when |
| Set to |
| Set to |
| Set to |