background image
<< Report Header | Component Testing for C >>
<< Report Header | Component Testing for C >>

Standard Array and Structure Display

Automated Testing
The Array and Structure Display option indicates the way in which Component
Testing processes variable array and structure statements. This option is part of the
Component Testing Settings for C dialog box.
Standard Array and Structure Display
This option processes arrays and structures according to the statement with which
they are declared. This is the default operating mode of Component Testing. The
default report format is the Standard editing.
Extended Array and Structure Display
Arrays of variables may be processed after the keywords VAR or ARRAY, and
structured variables after the keywords VAR, ARRAY, or STRUCTURE:
·
After a VAR statement, each element in the array is initialized and tested one by
one. Likewise, each member of a structure that is an array is initialized and
tested element by element.
·
After an ARRAY statement, the entire array is initialized and checked. Likewise,
each member of a structure is initialized and checked element by element.
·
After a STRUCTURE statement, the whole of the structure is initialized and
checked.
When Extended editing is selected, Component Testing interprets ARRAY and
STRUCTURE statements as VAR statements.
The output records in the unit test report are then detailed for each element in the
array or structure.
Note This setting slightly slows down the test execution because checks are
performed on each element in the array.
Packed Array and Structure Display
This command has the opposite effect of the Extended editing option. When Packed
editing is selected, Component Testing interprets VAR statements as ARRAY or
STRUCTURE statements.
Array and structure contents are fully tested, only the output records are more
concise.
Note This setting slightly improves speed of execution because checks are
performed on each array as a whole.
125