Skip to main content

normalize_process_event

Function normalize_process_event 

Source
pub fn normalize_process_event(
    event: ProcessEvent,
    parse_line: impl FnMut(&str) -> ParsedLine,
) -> Vec<RunEvent>
Expand description

Translate one raw process event into zero or more normalized RunEvents, using parse_line to decode the harness’s stdout wire format. Lifecycle events (Started / Exited / Error) and stderr are harness-neutral and handled here; only the stdout parsing differs per harness — so every process-backed adapter shares this skeleton and supplies just its own line parser.