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

Function test_identity_to_author

atomic-identity/src/lib.rs:243–253  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241
242 #[test]
243 fn test_identity_to_author() {
244 let identity = Identity::builder("alice")
245 .email("alice@example.com")
246 .build()
247 .unwrap();
248
249 let author = identity.to_author();
250 assert_eq!(author.name, "alice");
251 assert_eq!(author.email, Some("alice@example.com".to_string()));
252 assert!(author.identity.is_some());
253 }
254
255 #[test]
256 fn test_delegation() {

Callers

nothing calls this directly

Calls 4

emailMethod · 0.80
to_authorMethod · 0.80
unwrapMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected