()
| 1915 | // fail-closed: a future step that invokes `ocr` without disabling the |
| 1916 | // self-updater breaks this contract without any step-name list to maintain. |
| 1917 | function ocrInvokingSteps() { |
| 1918 | return STEPS.filter((step) => { |
| 1919 | if (typeof step.run !== "string") return false; |
| 1920 | const code = step.run |
| 1921 | .split(/\r?\n/) |
| 1922 | .filter((line) => !/^\s*#/.test(line)) |
| 1923 | .join("\n"); |
| 1924 | return /(?:^|[\s;&|(`])ocr\s+\S/.test(code); |
| 1925 | }); |
| 1926 | } |
| 1927 | |
| 1928 | function testActionOcrInvocationsDisableSelfUpdate() { |
| 1929 | const invokers = ocrInvokingSteps(); |
no outgoing calls
no test coverage detected