openmainframeproject / cobol-check

A testing framework for Cobol applications
Apache License 2.0
78 stars 28 forks source link

276 support on EXCEPTION in CALLs #311

Closed AkashKumar7902 closed 1 year ago

AkashKumar7902 commented 1 year ago

Fixes: #276

AkashKumar7902 commented 1 year ago

@Rune-Christensen Should the mocked call statement in testfile will have 'on exception' signature ? like: MOCK CALL 'PROG' USING VALUE-1 ON EXCEPTION PERFORM 100-WELCOME DISPLAY "HELLO WORLD" END-MOCK

Rune-Christensen commented 1 year ago

@Rune-Christensen Should the mocked call statement in testfile will have 'on exception' signature ? like: MOCK CALL 'PROG' USING VALUE-1 ON EXCEPTION PERFORM 100-WELCOME DISPLAY "HELLO WORLD" END-MOCK

@AkashKumar7902 At the moment, we do not want the MOCK CALL statement, to contain ON EXCEPTION as part of the signature. Therefore we want to ensure, with a tests, that a call, with on exception, can be mocked and that the mock works. As the code is right now.