Main Content

Behavior when a matching unit test for subsystem reference is missing

Diagnostic behavior when subsystem reference signature does not match any unit test signature

Since R2023a

Model Configuration Pane: Diagnostics

Description

The Behavior when a matching unit test for subsystem reference is missing parameter specifies the diagnostic behavior when you simulate or build a model that contains a Subsystem Reference block whose signatures does not match any of the unit test signatures of the Subsystem Reference block in the subsystem file.

Settings

error (default) | warning | none
none

The software simulates or builds the model and does not issue a diagnostic.

warning

The software simulates or builds the model, but issues a warning that includes the names of subsystem reference instances that do not have matching unit tests.

error

The software does not simulate or build the model and issues an error that includes the names of subsystem reference instances that do not have matching unit tests.

Recommended Settings

ApplicationSetting
Debuggingerror or warning
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror

Programmatic Use

Parameter: SubsystemReferenceDiagnosticForUnitTest
Type: string | character vector
Value: 'none' | 'warning' | 'error'
Default: 'error'

Version History

Introduced in R2023a