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

Function test_validate_remote_name_valid

atomic-repository/src/remote.rs:1090–1096  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1088
1089 #[test]
1090 fn test_validate_remote_name_valid() {
1091 assert!(validate_remote_name("origin").is_ok());
1092 assert!(validate_remote_name("my-remote").is_ok());
1093 assert!(validate_remote_name("my_remote").is_ok());
1094 assert!(validate_remote_name("remote123").is_ok());
1095 assert!(validate_remote_name("a").is_ok());
1096 }
1097
1098 #[test]
1099 fn test_validate_remote_name_invalid() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected