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

Function role_variants_serialize_correctly

atomic-teams/src/member.rs:148–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146
147 #[test]
148 fn role_variants_serialize_correctly() {
149 for (role, expected) in [
150 (OrgRole::Owner, "\"owner\""),
151 (OrgRole::Admin, "\"admin\""),
152 (OrgRole::Member, "\"member\""),
153 ] {
154 assert_eq!(serde_json::to_string(&role).unwrap(), expected);
155 }
156 }
157}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected