MCPcopy Create free account
hub / github.com/afar1/fieldtheory-cli / makeFakeEngine

Function makeFakeEngine

tests/engine.test.ts:332–337  ·  view source on GitHub ↗
(tmpDir: string, script: string)

Source from the content-addressed store, hash-verified

330// path would have to string-match on.
331
332function makeFakeEngine(tmpDir: string, script: string): { name: string; config: { bin: string; args: (p: string) => string[] } } {
333 const binPath = path.join(tmpDir, 'fake-engine');
334 fs.writeFileSync(binPath, script);
335 fs.chmodSync(binPath, 0o755);
336 return { name: 'fake', config: { bin: binPath, args: (p) => [p] } };
337}
338
339test('invokeEngineAsync: child stdin is closed with EOF (does not inherit parent)', async () => {
340 if (process.platform === 'win32') return;

Callers 1

engine.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected