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.
Asked
Active
Viewed 61 times
0
-
2Instead of repeating the question, please [edit] your question to include a [mre] that illustrates the use case you describe. – trashgod Dec 27 '22 at 13:21
1 Answers
1
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?)

Simon Wright
- 25,108
- 2
- 35
- 62