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 StubsNative Code in StubsExcluding a Parameter from a StubSimulating Functions with _inout Mode ArraysSimulating Functions that Use a Variable Number of ParametersSeparate Body Stub