You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Equivalence harness: generate test inputs from record layouts (any estate testable, edge cases included) #3804
legacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Problem. The harness proves a port on the data the estate ships. CardDemo ships data files; most repositories ship none. So a fresh estate can't be tested, and one sample file covers only the paths its records reach.
Proposal. Generate each input dataset from the program's record layout, which the engine already knows: every field's PICTURE, USAGE, offset, OCCURS and REDEFINES.
Values per field type:
text: spaces, a full-width value, mixed case;
DISPLAY / COMP-3 / COMP numerics: zero, one, the maximum, negative where the PIC is signed, and a fraction at the PIC's scale;
dates-shaped fields as found.
Keys: unique and sorted per the VSAM define (a KSDS loads in key order); an AIX key may repeat when NONUNIQUEKEY.
Deterministic: seeded, so a run can be reproduced exactly.
Joins: where the facts say one file's field keys another (a card xref's account id, an account's customer id), some records match and some deliberately miss, so both the found and NOTFND paths run.
CICS scenarios: COMMAREA and map input are generated the same way, including non-numeric input for numeric fields.
Done when: a case can say "input": "@generate" (with an optional seed and record count); CardDemo INTCALC / POSTTRAN / account view run equivalent on generated inputs as well as their own data; and a new estate with no data can run the harness.
legacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Activity
Equivalence harness: inputs generated from record layouts (#3804) (#3808
train: #4464 opaque DFHCOMMAREA + #3804 generated inputs (#4524)