()
| 755 | |
| 756 | #[test] |
| 757 | fn detect_source_homebrew_linuxbrew() { |
| 758 | let env = MockEnv::new(); |
| 759 | let p = Path::new("/home/linuxbrew/.linuxbrew/bin/atomic"); |
| 760 | match detect_source(p, &env) { |
| 761 | InstallSource::Homebrew { prefix } => { |
| 762 | assert_eq!(prefix, PathBuf::from("/home/linuxbrew/.linuxbrew")); |
| 763 | } |
| 764 | other => panic!("expected Homebrew, got {other:?}"), |
| 765 | } |
| 766 | } |
| 767 | |
| 768 | #[test] |
| 769 | fn detect_source_cargo_with_cargo_home() { |
nothing calls this directly
no test coverage detected