use super::build_region_service_trace_report;
use crate::inspect::smp::services::SmpRegionServiceTraceReport;
use crate::inspect::smp::world::inspect_save_company_and_chairman_analysis_file;
use std::path::Path;

pub fn inspect_save_region_service_trace_file(
    path: &Path,
) -> Result<SmpRegionServiceTraceReport, Box<dyn std::error::Error>> {
    let analysis = inspect_save_company_and_chairman_analysis_file(path)?;
    Ok(build_region_service_trace_report(&analysis))
}
