()
| 814 | |
| 815 | #[test] |
| 816 | fn detect_source_cargo_with_home_only() { |
| 817 | let env = MockEnv::new().set("HOME", "/u/me"); |
| 818 | let p = Path::new("/u/me/.cargo/bin/atomic"); |
| 819 | assert_eq!(detect_source(p, &env), InstallSource::Cargo); |
| 820 | } |
| 821 | |
| 822 | #[test] |
| 823 | fn detect_source_random_path_is_manual() { |