Test double injection techniques in C/C++

From Hidden In Plain Sight
Jump to: navigation, search

How you inject your test doubles depends on what you're trying to achieve and what methods are available to you.

Injection Techniques

There are three points where test doubles can be injected in C/C++.


  • Testing drivers
  • Testing error cases from hardware
  • Developing before the hardware is ready