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

Function add_accepts_name

atomic-cli/src/commands/org/member.rs:567–575  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

565
566 #[test]
567 fn add_accepts_name() {
568 let cmd = MemberAdd {
569 identity: "alice".to_string(),
570 role: "member".to_string(),
571 org: None,
572 };
573 assert!(!cmd.identity.contains('@'));
574 assert!(uuid::Uuid::parse_str(&cmd.identity).is_err());
575 }
576
577 #[test]
578 fn add_invalid_uuid_detected() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected