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

Function test_identity_usage_display

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

Source from the content-addressed store, hash-verified

264
265 #[test]
266 fn test_identity_usage_display() {
267 assert_eq!(format!("{}", IdentityUsage::Personal), "personal");
268 assert_eq!(format!("{}", IdentityUsage::Work), "work");
269 assert_eq!(format!("{}", IdentityUsage::Community), "community");
270 assert_eq!(format!("{}", IdentityUsage::Bot), "bot");
271 assert_eq!(
272 format!("{}", IdentityUsage::Custom("consulting".to_string())),
273 "consulting"
274 );
275 }
276
277 #[test]
278 fn test_identity_usage_from_str() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected