Test Seams in C: Function pointers vs. Preprocessor hash defines vs. Link-time substitution
When replacing production C code with test doubles (or fakes), there are three basic approaches: function pointers, preprocessor hash defines, and link time-time substitution. All three are examples of what Michael Feathers calls a seam, or a way to change … Continue reading Test Seams in C: Function pointers vs. Preprocessor hash defines vs. Link-time substitution
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed