coder.profile.test.generateCriticalPathTest
Description
generates test cases that execute the critical path of the generated code identified by
pathCoverageTest
= coder.profile.test.generateCriticalPathTest(resultsObject
,MaxTime
=100)coder.profile.test.analyzePath
using Simulink®
Design Verifier™. The function uses the maximum time specified in MaxTime
for test generation. The function can generate test cases only if the path contains
conditional subsystems or blocks with decision conditions for execution from this list.
Switch
If Action Subsystem
Multiport Switch
Switch Case
For Iterator
While Iterator
Enabled Subsystem
Triggered Subsystem
Enabled and Triggered Subsystem
The coder.profile.test.generateCriticalPathTest
function
saves the generated test cases in both a MAT data file and a Simulink
Test™ compatible MLDATX file. The files are saved in
sldv_output/modelName
folder, where modelName
is the
name of your model.
If you have a Simulink Test license, you can use the MLDATX file directly for execution-time analysis. If you do not have a Simulink Test license, you can import the test cases in the MAT data file to your model as inputs and use those for analysis. For more information on importing data into a model, see Overview of Signal Loading Techniques and Load Input Data for Basic Test Cases.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2024a