MCPcopy Create free account
hub / github.com/garrytan/gstack / logHas

Function logHas

test/gstack-detach.test.ts:28–30  ·  view source on GitHub ↗
(p: string, needle: string)

Source from the content-addressed store, hash-verified

26 return pred();
27}
28function logHas(p: string, needle: string): boolean {
29 try { return fs.readFileSync(p, 'utf-8').includes(needle); } catch { return false; }
30}
31
32describe('gstack-detach', () => {
33 test('detaches (different pgid), returns immediately, completes, writes EXIT sentinel', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected