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

Function detect_source_homebrew_linuxbrew

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

detect_sourceFunction · 0.85

Tested by

no test coverage detected