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:816–820  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

814
815 #[test]
816 fn detect_source_cargo_with_home_only() {
817 let env = MockEnv::new().set("HOME", "/u/me");
818 let p = Path::new("/u/me/.cargo/bin/atomic");
819 assert_eq!(detect_source(p, &env), InstallSource::Cargo);
820 }
821
822 #[test]
823 fn detect_source_random_path_is_manual() {

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected