usestd::fs;usestd::path::PathBuf;/// Load a test file as bytes
pub(crate)fnfixture_as_raw(resource:&str)->Vec<u8>{let path =fixture_filename(resource);fs::read(path).unwrap()}/// Load a test file and return it as a String
pub(crate)fnfixture_as_string(resource:&str)-> String{let path =fixture_filename(resource);fs::read_to_string(path).unwrap()}/// Return the path to our test data directory
pub(crate)fnfixture_dir()-> PathBuf{letmut dir =PathBuf::from(env!("CARGO_MANIFEST_DIR"));
dir.push("fixture");
dir
}/// Return the path to a file within the test data directory
pub(crate)fnfixture_filename(filename:&str)-> String{letmut dir =fixture_dir();
dir.push(filename);
dir.to_str().unwrap().to_owned()}