fn install_uninstall_affect_path() {
        clitools::setup(Scenario::Empty, &|config| {
            with_saved_path(&|| {
                let path = config.cargodir.join("bin").to_string_lossy().to_string();

                expect_ok(config, &INIT_NONE);
                assert!(
                    get_path().unwrap().contains(&path),
                    format!("`{}` not in `{}`", get_path().unwrap(), &path)
                );

                expect_ok(config, &["rustup", "self", "uninstall", "-y"]);
                assert!(!get_path().unwrap().contains(&path));
            })
        });
    }
/// Smoke test for end-to-end code connectivity of the installer path mgmt on windows.
Smoke test for end-to-end code connectivity of the installer path mgmt on windows.
Smoke test for end - to - end code connectivity of the installer path mgmt on windows .
fn install_uninstall_affect_path() {
        clitools::setup(Scenario::Empty, &|config| {
            with_saved_path(&|| {
                let path = config.cargodir.join("bin").to_string_lossy().to_string();
                expect_ok(config, &INIT_NONE);
                assert!(
                    get_path().unwrap().contains(&path),
                    format!("`{}` not in `{}`", get_path().unwrap(), &path)
                );
                expect_ok(config, &["rustup", "self", "uninstall", "-y"]);
                assert!(!get_path().unwrap().contains(&path));
            })
        });
    }
fn install_uninstall_affect_path ( ) { clitools :: setup ( Scenario :: Empty , & | config | { with_saved_path ( & | | { let path = config . cargodir . join ( " " ) . to_string_lossy ( ) . to_string ( ) ; expect_ok ( config , & INIT_NONE ) ; assert ! ( get_path ( ) unwrap ( ) contains ( path ) format ( " " get_path ( ) unwrap ( ) path ) ) ; expect_ok ( config , & [ " " , " " , " " , " " ] ) ; assert ! ( get_path ( ) unwrap ( ) contains ( path ) ) ; } ) } ) ; }
Smoke test for end-to-end code connectivity of the installer path mgmt on windows.
Smoke test for end - to - end code connectivity of the installer path mgmt on windows .