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

Function test_identity_display_short

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

Source from the content-addressed store, hash-verified

696
697 #[test]
698 fn test_identity_display_short() {
699 let identity = Identity::builder("alice")
700 .email("alice@example.com")
701 .build()
702 .unwrap();
703
704 assert_eq!(identity.display_short(), "alice <alice@example.com>");
705
706 let identity2 = Identity::builder("bob").build().unwrap();
707 assert_eq!(identity2.display_short(), "bob");
708 }
709
710 #[test]
711 fn test_identity_to_author() {

Callers

nothing calls this directly

Calls 3

emailMethod · 0.80
unwrapMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected