#![allow(dead_code)]usestd::path::PathBuf;usestd::sync::Once;staticLOGGER_INIT: Once =Once::new();// Rust runs the tests concurrently, so unless we synchronize logging access
// it will crash when attempting to run `cargo test` with some logging facilities.
pubfnensure_env_logger_initialized(){LOGGER_INIT.call_once(env_logger::init);}pubfnsamples_dir()-> PathBuf{PathBuf::from(file!()).parent().unwrap().parent().unwrap().join("samples").canonicalize().unwrap()}pubfnmft_sample()-> PathBuf{samples_dir().join("MFT")}