matlabtest.coder.MATLABCoderTester Class
Namespace: matlabtest.coder
Description
Use the matlabtest.coder.MATLABCoderTester
class to generate C/C++ code by using MATLAB®
Coder™ and test the generated code for equivalence with MATLAB source code. This test class provides similar functionality to matlabtest.coder.TestCase
. Use matlabtest.coder.MATLABCoderTester
to generate C/C++ code
from multiple-entry point functions and multiple function signatures. 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.MATLABCoderTester
class is a handle
class.
Creation
Create a class definition file that inherits from matlab.unittest.TestCase
and then author test methods in a
methods
block that imports matlabtest.coder.MATLABCoderTester
. Construct an
instance of matlabtest.coder.MATLABCoderTester
by using one of these methods:
Properties
Methods
Examples
Version History
Introduced in R2023a