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

Function test_identity_to_author

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

Source from the content-addressed store, hash-verified

677
678 #[test]
679 fn test_identity_to_author() {
680 let identity = Identity::builder("alice")
681 .email("alice@example.com")
682 .build()
683 .unwrap();
684
685 let author = identity.to_author();
686 assert_eq!(author.name, "alice");
687 assert_eq!(author.email, Some("alice@example.com".to_string()));
688 assert!(author.identity.is_some());
689 }
690
691 #[test]
692 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