usestd::fs;usestd::path::PathBuf;pubfnfixture_obj()-> PathBuf{PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/fixtures/triangle.obj")}#[allow(dead_code)]pubfnfixture_dir()-> PathBuf{fixture_obj().parent().expect("fixture directory").to_path_buf()}#[allow(dead_code)]pubfnfixture_dir_uri()-> String{format!("file://{}",fixture_dir().display())}#[allow(dead_code)]pubfnoutput_dir(name:&str)-> PathBuf{let dir =PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("target/test-artifacts").join(name);fs::create_dir_all(&dir).expect("create test artifact dir");
dir
}