#![forbid(unsafe_code)]
use std::path::Path;
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ParityStatusQuery {
pub command_parity_matrix_exists: bool,
pub status_report_exists: bool,
pub command_migration_matrix_exists: bool,
}
#[must_use]
pub fn parity_status_query(workspace_root: &Path) -> ParityStatusQuery {
ParityStatusQuery {
command_parity_matrix_exists: workspace_root
.join("artifacts/parity/command_parity_matrix.json")
.exists(),
status_report_exists: workspace_root.join("artifacts/status/status.json").exists(),
command_migration_matrix_exists: workspace_root
.join("artifacts/status/command_migration_matrix.json")
.exists(),
}
}