Skip to main content

compute_trace_output

Function compute_trace_output 

Source
pub fn compute_trace_output(
    change_repo: &(impl ChangeRepository + ?Sized),
    change_id: &str,
) -> CoreResult<TraceOutput>
Expand description

Compute requirement traceability for a change.

Loads the change, reads its delta specification files, extracts requirement identifiers from the parsed deltas, determines the change lifecycle (“archived” when the change path contains /archive/ or /archived/, otherwise “active”), and returns a structured TraceOutput describing declared, covered, uncovered, and unresolved requirements along with diagnostics and a status/reason.

§Examples

// Given a ChangeRepository `repo` and a change id:
let output = compute_trace_output(&repo, "CH-123").unwrap();
println!("{}", output.status);