()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected