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

Function detect_source_cargo_with_home_only

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected