Preprocessor mocks vs. dependency injection for credential-free Fortran integration tests
Context A Fortran codebase calls an external REST API that requires production credentials. The goal is to run integration tests in CI without those credentials, using test doubles for the HTTP client. Two documented patterns exist: C-preprocessor conditional compilation ( #ifdef TEST ) and Fortran 2003 polymorphism with abstract interfaces. Constraint The p