RapiTest lets you test and stub private objects in your code without needing to write specific test code to expose them or modify your code.
All you need to do to access a private object is write your tests as normal in one of RapiTest's powerful test formats, and RapiTest will automatically expose the private objects in your code in the test harness it generates.
This applies to
static variables and functions in C,
private members in C++ and
private types and packages in Ada.