Examples of Using the MFUPP Preprocessor

The following sections demonstrate some examples of using the MFUPP preprocessor to put some source code under test:
  • Using MFUPP to Insert Test Code Into a Program compiles some source code with the MFUPP preprocessor and then inserts copybooks containing your test cases and accompanying test data when run through the testing framework.
  • Using MFUPP to Mock and Stub a Program compiles two programs with the MFUPP preprocessor, and then uses a controller entry point in the test case to control the flow of execution through the source. It skips certain sections of code, and also redirects to other stub code at certain points.