()
| 1929 | // fail-closed: a future step that invokes `ocr` without disabling the |
| 1930 | // self-updater breaks this contract without any step-name list to maintain. |
| 1931 | function ocrInvokingSteps() { |
| 1932 | return STEPS.filter((step) => { |
| 1933 | if (typeof step.run !== "string") return false; |
| 1934 | const code = step.run |
| 1935 | .split(/\r?\n/) |
| 1936 | .filter((line) => !/^\s*#/.test(line)) |
| 1937 | .join("\n"); |
| 1938 | return /(?:^|[\s;&|(`])ocr\s+\S/.test(code); |
| 1939 | }); |
| 1940 | } |
| 1941 | |
| 1942 | function testActionOcrInvocationsDisableSelfUpdate() { |
| 1943 | const invokers = ocrInvokingSteps(); |
no outgoing calls
no test coverage detected