Main Content

Simulink.SubsystemReference.getUnitTestNames

Return names of unit tests of subsystem file

Since R2023a

Description

example

unitTests = Simulink.SubsystemReference.getUnitTestNames(name) returns the names of the test harnesses that are selected as unit tests of the subsystem file name.

Examples

collapse all

unitTests = Simulink.SubsystemReference.getUnitTestNames('slexReusableSS')
unitTests =

  1×2 cell array

    {'ssref1_double'}    {'ssref1_int32'}

Input Arguments

collapse all

Name of the subsystem file, specified as a string or character vector. You can also specify the handle of the subsystem file.

Example: 'slexReusableSS'

Data Types: char | string

Output Arguments

collapse all

Names of unit tests of the subsystem file, specified as a cell array.

Data Types: cell

Version History

Introduced in R2023a