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

Function install_source_short_labels

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

Source from the content-addressed store, hash-verified

1058
1059 #[test]
1060 fn install_source_short_labels() {
1061 assert_eq!(InstallSource::Cargo.short_label(), "cargo");
1062 assert_eq!(InstallSource::Manual.short_label(), "manual");
1063 assert_eq!(InstallSource::Unknown.short_label(), "unknown");
1064 assert_eq!(
1065 InstallSource::Homebrew {
1066 prefix: PathBuf::from("/x"),
1067 }
1068 .short_label(),
1069 "homebrew"
1070 );
1071 }
1072}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected