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

Function test_identity_to_author

atomic-identity/src/identity.rs:711–721  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

709
710 #[test]
711 fn test_identity_to_author() {
712 let identity = Identity::builder("alice")
713 .email("alice@example.com")
714 .build()
715 .unwrap();
716
717 let author = identity.to_author();
718 assert_eq!(author.name, "alice");
719 assert_eq!(author.email, Some("alice@example.com".to_string()));
720 assert!(author.identity.is_some());
721 }
722
723 #[test]
724 fn test_identity_verify_signature() {

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