Test Techniques for C++

Warning: This article is under construction

Sometimes you run into code that is very difficult to test, but re-structuring some simple pieces can maximize code coverage, and increase your confidence in the code. In this article, we will go over various examples of the most difficult test case scenarios, such as:

  • Test code that invokes the exit() function

  • Test code that calls system calls, such as fork()

  • Test private functions

 

SIBROS TECHNOLOGIES, INC. CONFIDENTIAL