()
| 774 | |
| 775 | #[test] |
| 776 | fn detect_source_cargo_with_home_only() { |
| 777 | let env = MockEnv::new().set("HOME", "/u/me"); |
| 778 | let p = Path::new("/u/me/.cargo/bin/atomic"); |
| 779 | assert_eq!(detect_source(p, &env), InstallSource::Cargo); |
| 780 | } |
| 781 | |
| 782 | #[test] |
| 783 | fn detect_source_random_path_is_manual() { |