IF Commons GitHub

runners/remote/mod

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0005-grc-runners FR-007

The remote runner (0005-grc-runners FR-007): the input is { target, argv } and the command is run on a remote the host gives, of the shape { exec(target, argv) -> { code, stdout, stderr } }; the targets of Headless satisfy it by shape and this unit imports nothing of it. The value is the code and the output.

Source: commons/grc/src/runners/remote/mod.ts

1 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

Remotetypeno test imports it
type Remote = { exec(target: string, argv: readonly string[]): Promise<{ readonly code: number; readonly stdout: string; readonly stderr: string }> };

What the host gives.

remoteRunnerfunction
function remoteRunner(remote: Remote): Runner

The remote runner over a remote.

Imported by 9 tests of the run (9 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.