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

Function test_identity_display_short

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

Source from the content-addressed store, hash-verified

664
665 #[test]
666 fn test_identity_display_short() {
667 let identity = Identity::builder("alice")
668 .email("alice@example.com")
669 .build()
670 .unwrap();
671
672 assert_eq!(identity.display_short(), "alice <alice@example.com>");
673
674 let identity2 = Identity::builder("bob").build().unwrap();
675 assert_eq!(identity2.display_short(), "bob");
676 }
677
678 #[test]
679 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