/// Get the docker volume mounts for this test
///
/// Each one is in the usual docker format
Get the docker volume mounts for this test
Each one is in the usual docker format
Get the docker volume mounts for this test Each one is in the usual docker format
fn volumes(&self, cache_dir: &Path, env: &Environment) -> Vec<String> {
        // Use dedicated volumes for the cargo cache so repeated tests aren't starting from nothing,
        // and always mount the crate root at /build
        vec![
            format!(
                "{}/registry:{}/registry",
                cache_dir.display(),
                env.cargo_home()
            ),
            format!(
                "{}/registry-index:{}/registry/index",
                cache_dir.display(),
                env.cargo_home()
            ),
            format!(
                "{}/registry-git:{}/registry/git",
                cache_dir.display(),
                env.cargo_home()
            ),
            format!("{}/git-db:{}/git/db", cache_dir.display(), env.cargo_home()),
            format!("{}:/build", self.path.display()),
        ]
    }
fn volumes ( & self , cache_dir : & Path , env : & Environment ) -> Vec < String > { // Use dedicated volumes for the cargo cache so repeated tests aren't starting from nothing, // and always mount the crate root at /build vec ! [ format ( " " cache_dir display ( ) env cargo_home ( ) ) format ( " " cache_dir display ( ) env cargo_home ( ) ) format ( " " cache_dir display ( ) env cargo_home ( ) ) format ( " " cache_dir display ( ) env cargo_home ( ) ) format ( " " self path display ( ) ) ] }
Get the docker volume mounts for this test
Each one is in the usual docker format
Get the docker volume mounts for this test Each one is in the usual docker format
&self
cache_dir
&Path
env
&Environment