()
| 243 | |
| 244 | #[test] |
| 245 | fn mutation_subject_rejects_everyone() { |
| 246 | let error = validate_mutation_subject(GrantSubjectType::Everyone).unwrap_err(); |
| 247 | assert!(matches!(error, TeamsError::InvalidInput(_))); |
| 248 | assert_eq!( |
| 249 | error.to_string(), |
| 250 | "Invalid input: grant mutations require a user or team subject" |
| 251 | ); |
| 252 | } |
| 253 | |
| 254 | #[test] |
| 255 | fn mutation_subject_accepts_users_and_teams() { |
nothing calls this directly
no test coverage detected