T4Z sample UT programs don't create a CCF map
search cancel

T4Z sample UT programs don't create a CCF map

book

Article ID: 398478

calendar_today

Updated On:

Products

Test4z

Issue/Introduction

Cobol Control Flow (CCF) works for SUT programs but not for Unit Test cases.

Environment

VS Code

Resolution

The UT uses ENTRY. CCF creates the flow map based on the PERFORM statements, and because most of the Unit tests (UT) start with ENTRYs before any PERFORMs, CCF can't create a flow map. 

There are a few sample UTs with PERFORMs listed before the first ENTRY is encountered, like ZTTDB2PH. These will produce a CCF map.

A workaround is to change all the ENTRY statements to PERFORM paragraphs that have the corresponding ENTRY statement. This will allow CCF to create the map.