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

Function add_grant_request_user_relation_read

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

Source from the content-addressed store, hash-verified

231
232 #[test]
233 fn add_grant_request_user_relation_read() {
234 let req = AddGrantRequest {
235 subject_type: GrantSubjectType::User,
236 subject_id: Uuid::nil(),
237 relation: GrantRelation::Read,
238 };
239 let json = serde_json::to_string(&req).unwrap();
240 assert!(json.contains("\"subject_type\":\"user\""), "got: {json}");
241 assert!(json.contains("\"relation\":\"read\""), "got: {json}");
242 }
243
244 #[test]
245 fn mutation_subject_rejects_everyone() {

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected