assert_has_installed_exe in cargo_test_support::install - Rust
Description: Used by `cargo install` tests to assert an executable binary has been installed. Example usage:

Skip to main content

## assert_has_installed_exe

# Function assert_has_installed_exe

Source

    pub fn assert_has_installed_exe<P: AsRef<Path>>(path: P, name: &'static str)

Expand description

Used by `cargo install` tests to assert an executable binary has been installed. Example usage:

    use cargo_test_support::install::assert_has_installed_exe;
    use cargo_test_support::paths;

    assert_has_installed_exe(paths::cargo_home(), "foo");