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

Function test_identity_usage_short_code

atomic-identity/src/usage.rs:236–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234
235 #[test]
236 fn test_identity_usage_short_code() {
237 assert_eq!(IdentityUsage::Personal.short_code(), "P");
238 assert_eq!(IdentityUsage::Work.short_code(), "W");
239 assert_eq!(IdentityUsage::Community.short_code(), "C");
240 assert_eq!(IdentityUsage::Bot.short_code(), "B");
241 assert_eq!(IdentityUsage::Custom("test".to_string()).short_code(), "X");
242 }
243
244 #[test]
245 fn test_identity_usage_parse() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected