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

Function test_identity_usage_is_methods

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

Source from the content-addressed store, hash-verified

198
199 #[test]
200 fn test_identity_usage_is_methods() {
201 assert!(IdentityUsage::Personal.is_personal());
202 assert!(!IdentityUsage::Personal.is_work());
203
204 assert!(IdentityUsage::Work.is_work());
205 assert!(!IdentityUsage::Work.is_personal());
206
207 assert!(IdentityUsage::Community.is_community());
208 assert!(IdentityUsage::Bot.is_bot());
209
210 let custom = IdentityUsage::Custom("test".to_string());
211 assert!(custom.is_custom());
212 assert!(!custom.is_personal());
213 }
214
215 #[test]
216 fn test_identity_usage_custom_name() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected