()
| 795 | |
| 796 | #[test] |
| 797 | fn detect_source_homebrew_linuxbrew() { |
| 798 | let env = MockEnv::new(); |
| 799 | let p = Path::new("/home/linuxbrew/.linuxbrew/bin/atomic"); |
| 800 | match detect_source(p, &env) { |
| 801 | InstallSource::Homebrew { prefix } => { |
| 802 | assert_eq!(prefix, PathBuf::from("/home/linuxbrew/.linuxbrew")); |
| 803 | } |
| 804 | other => panic!("expected Homebrew, got {other:?}"), |
| 805 | } |
| 806 | } |
| 807 | |
| 808 | #[test] |
| 809 | fn detect_source_cargo_with_cargo_home() { |
nothing calls this directly
no test coverage detected