| Adding coverage analysis to the tests of the stack classs public interface revealed that not all of its functionality was covered; the copy constructor was not executed. In this example a third test is added to test not only the functionality of the copy constructor but also its implementation. Thus a white-box test will be performed: one that uses both the public and private interface of the software under test. |