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

Function mutation_subject_rejects_everyone

atomic-teams/src/grant.rs:245–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected