MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / program

Function program

__tests__/sync-memo-lifetime.test.ts:208–218  ·  view source on GitHub ↗
(name: string, value: string)

Source from the content-addressed store, hash-verified

206
207 it('COBOL: a transaction id moves to another program', async () => {
208 const program = (name: string, value: string): string => [
209 'IDENTIFICATION DIVISION.',
210 `PROGRAM-ID. ${name}.`,
211 'DATA DIVISION.',
212 'WORKING-STORAGE SECTION.',
213 `01 WS-TRANID PIC X(04) VALUE '${value}'.`,
214 'PROCEDURE DIVISION.',
215 'P1.',
216 ' DISPLAY "HI".',
217 '',
218 ].map((line) => (line ? ` ${line}` : line)).join('\n');
219 const caller = (extra: string): string => [
220 'IDENTIFICATION DIVISION.',
221 'PROGRAM-ID. CALLER.',

Callers 1

Calls 2

mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected