Main Content
matlabtest.coder.TestCase Class
Namespace: matlabtest.coder
Superclasses: matlab.unittest.TestCase
Description
Use the matlabtest.coder.TestCase
class to generate C/C++ code by using MATLAB®
Coder™ and test the generated code for equivalence with MATLAB source code. You must have MATLAB
Coder to run equivalence tests for generated C/C++ code for MEX targets and Embedded Coder® for LIB and DLL targets.
The matlabtest.coder.TestCase
class is a handle
class.
Creation
Create a class definition file that inherits from matlabtest.coder.TestCase
. Author test
methods in a methods
block to define the test case.
Methods
Examples
Version History
Introduced in R2023a