Skip to main content

sync_command_outputs

Function sync_command_outputs 

Source
pub fn sync_command_outputs(
    root: &Path,
    workspace: &Path,
    baseline: &WorkspaceOutputBaseline,
    protected: &BTreeSet<PathBuf>,
) -> Result<CommandOutputSync, WorkspaceError>
Expand description

Copy files the wrapped command created or changed in the mirror back to the real project, so supercov -- <command> leaves the working tree in the same state <command> alone would have: updated snapshots, generated fixtures, and reports land in the repository, not in a cache directory. protected names relative paths whose mirror copies are instrumented and must never flow back.