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

Function test_author_with_identity

atomic-core/src/change/header.rs:425–429  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

423
424 #[test]
425 fn test_author_with_identity() {
426 let author = Author::with_identity("Alice", Some("alice@example.com"), "KEYABCDEF");
427 assert!(author.has_identity());
428 assert_eq!(author.identity, Some("KEYABCDEF".to_string()));
429 }
430
431 #[test]
432 fn test_author_display_short() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected