Accessing locally created subprogram inside package in Ada

78 Views Asked by At

Can anyone please let me know, how to get access to locally created subprogram inside package in order to test the locally created subprogram independently using GNATest (Aunit), instead of integrating locally created subprogram in called function/procedure.

1

There are 1 best solutions below

1
On

If the subprogram you want to test is declared in the private part of the spec, you could create a special test-only child package to give access to it (or maybe to contain the tests?)