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

Function add_with_admin_role

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

Source from the content-addressed store, hash-verified

544
545 #[test]
546 fn add_with_admin_role() {
547 let cmd = MemberAdd {
548 identity: "550e8400-e29b-41d4-a716-446655440000".to_string(),
549 role: "admin".to_string(),
550 org: Some("acme".to_string()),
551 };
552 assert_eq!(cmd.role, "admin");
553 assert_eq!(cmd.org.as_deref(), Some("acme"));
554 }
555
556 #[test]
557 fn add_accepts_email() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected