pub fn temp_workspace() -> Self {
        let temp_dir = tmp::Builder::new()
            .prefix(TEMP_PREFIX)
            .suffix(TEMP_SUFFIX)
            .tempdir()
            .unwrap()
            .into_path();
        let sub_dir = temp_dir.join("tests");
        create_dir(&sub_dir).expect("mkdir");
        abs_copy_dir(
            &fixtures().to_string_lossy(),
            &sub_dir.join("fixtures").to_string_lossy(),
        );
        Self::new(&temp_dir)
    }
/// Use a temporary copy of workspace as working directory
Use a temporary copy of workspace as working directory
Use a temporary copy of workspace as working directory
pub fn temp_workspace() -> Self {
        let temp_dir = tmp::Builder::new()
            .prefix(TEMP_PREFIX)
            .suffix(TEMP_SUFFIX)
            .tempdir()
            .unwrap()
            .into_path();
        let sub_dir = temp_dir.join("tests");
        create_dir(&sub_dir).expect("mkdir");
        abs_copy_dir(
            &fixtures().to_string_lossy(),
            &sub_dir.join("fixtures").to_string_lossy(),
        );
        Self::new(&temp_dir)
    }
pub fn temp_workspace ( ) -> Self { let temp_dir = tmp :: Builder :: new ( ) . prefix ( TEMP_PREFIX ) . suffix ( TEMP_SUFFIX ) . tempdir ( ) . unwrap ( ) . into_path ( ) ; let sub_dir = temp_dir . join ( " " ) ; create_dir ( & sub_dir ) . expect ( " " ) ; abs_copy_dir ( & fixtures ( ) . to_string_lossy ( ) , & sub_dir . join ( " " ) . to_string_lossy ( ) , ) ; Self :: new ( & temp_dir ) }
Use a temporary copy of workspace as working directory
Use a temporary copy of workspace as working directory