src/stdlib/process/legacy.panack
Green: covered; red: known zero; amber: unavailable. Blank lines are outside the executable-start-line denominator.
1 pub import stdlib/host::{HostError} 2 3 // Exactly one of exit_code or signal describes termination; signal zero means exit. 4 pub record ProcessOutput { exit_code: Nat, signal: Nat, stdout: Bytes, stderr: Bytes } 5 6 pub run(executable: Path, arguments: [Str], stdin: Bytes, 7 working_directory: Path, environment: [Str], timeout: Duration, 8 output_limit: Nat): Result[ProcessOutput,HostError] { 9 process_run(executable, arguments, stdin, working_directory, environment, 10 timeout, output_limit) 11 } 12 13 // Supply the complete child environment. No inherited variables or automatic 14 // coverage ticket are added; executable lookup remains an explicit Path. 15 pub run_isolated(executable: Path, arguments: [Str], stdin: Bytes, 16 working_directory: Path, environment: [Str], timeout: Duration, 17 output_limit: Nat): Result[ProcessOutput,HostError] { 18 process_run_isolated(executable, arguments, stdin, working_directory, environment, 19 timeout, output_limit) 20 } 21
Functions
[
{
"id": "declaration/2",
"name": "run",
"line": 6,
"state": "zero",
"entries": "0"
},
{
"id": "declaration/3",
"name": "run_isolated",
"line": 15,
"state": "zero",
"entries": "0"
}
]Source branch outcomes
[]
Reviewed declaration exclusions
[
{
"id": "declaration/0",
"reason": "import",
"line": 1
},
{
"id": "declaration/1",
"reason": "record-declaration",
"line": 4
}
]