MCPcopy Create free account
hub / github.com/sindresorhus/execa / getStreamInputSubprocess

Function getStreamInputSubprocess

test/resolve/stdio.js:15–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13setFixtureDirectory();
14
15const getStreamInputSubprocess = fdNumber => execa('stdin-fd.js', [`${fdNumber}`], fdNumber === 3
16 ? getStdio(3, [new Uint8Array(), infiniteGenerator()])
17 : {});
18const getStreamOutputSubprocess = fdNumber => execa('noop-repeat.js', [`${fdNumber}`], fdNumber === 3 ? fullStdio : {});
19
20const assertStreamInputError = (t, {exitCode, signal, isTerminated, failed}) => {

Callers 3

testStreamInputAbortFunction · 0.85
testStreamInputDestroyFunction · 0.85
testStreamInputErrorFunction · 0.85

Calls 1

getStdioFunction · 0.90

Tested by

no test coverage detected