mod baseline;
mod counts;
mod outcome;
mod tolerance;
#[allow(unused_imports, reason = "re-exports for lib.rs public API")]
pub use baseline::load_regression_baseline;
pub use baseline::{
RegressionOpts, SaveRegressionTarget, compare_check_regression_with_identity,
save_baseline_to_config_with_identity, save_regression_baseline_with_identity,
};
pub use counts::CheckCounts;
#[allow(unused_imports, reason = "re-exports for lib.rs public API")]
pub use counts::{DupesCounts, RegressionBaseline};
pub use outcome::{RegressionOutcome, print_regression_outcome};
pub use tolerance::Tolerance;
pub fn regression_config_target(
config: Option<&std::path::Path>,
root: &std::path::Path,
) -> std::path::PathBuf {
config.map_or_else(
|| {
fallow_config::FallowConfig::find_config_path(root)
.unwrap_or_else(|| root.join(".fallowrc.json"))
},
std::path::Path::to_path_buf,
)
}