Testing Private Logic in C++ Libraries Without Breaking Encapsulation
When developing dynamic or static libraries, a common challenge arises: how to achieve high test coverage for internal logic without exposing private members to the end-user.
Typically, without a specialized testing framework, testing private methods often leads to "dirty" code—either by making members public or by using intrusive workarounds that violate the principles of Object-Oriented Programming.
My name is Vladimir Markin, and I am the author of fcfTest —a lightweight C++ unit testing library designed to solve exactly this problem.…