MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / detect_source_homebrew_linuxbrew

Function detect_source_homebrew_linuxbrew

atomic-cli/src/commands/update.rs:797–806  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

detect_sourceFunction · 0.85

Tested by

no test coverage detected