Skip to main content

save_last_mutation_report

Function save_last_mutation_report 

Source
pub fn save_last_mutation_report(
    analysis: &AnalysisOptions,
    report: &Value,
) -> Result<PathBuf, ProgrammaticError>
Expand description

Saves the JSON report of a run as the last report of the project, and returns its path. The write goes to a temporary file first, so a reader never sees half a report.

ยงErrors

Returns an error when the config does not resolve or the cache directory cannot be written.