cargo_test_support::install

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");