(geneObj)
| 10 | // fake claude: emits a result envelope whose `result` is the given gene object |
| 11 | // (or garbage / structural-invalid per mode), then exits 0 (or nonzero). |
| 12 | function geneEnvelope(geneObj) { |
| 13 | return JSON.stringify({ type: 'result', is_error: false, result: JSON.stringify(geneObj) }); |
| 14 | } |
| 15 | function fakeSpawn(emit, counter, exitCode) { |
| 16 | return (bin, args, opts) => { |
| 17 | if (counter) counter.n++; |
no outgoing calls
no test coverage detected