Stubbing generic units
Component Testing for Ada
You can stub generic units just as ordinary units by using the following syntax:
DEFINE STUB STUB_NAME < dimension>
# optional declarations
END DEFINE
The Unit Testing Ada Test Script Compiler generates a stub body for this unit to perform the desired simulations.
Related Topics
Advanced Stubs | Native Code in Stubs | Excluding a Parameter from a Stub | Simulating Functions with _inout Mode Arrays | Simulating Functions that Use a Variable Number of Parameters | Separate Body Stub