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

Function test_credit_author_display

atomic-core/src/change/credit.rs:840–851  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

838
839 #[test]
840 fn test_credit_author_display() {
841 let with_email = Credit::human(
842 "alice",
843 Some("alice@example.com"),
844 test_hash(),
845 test_timestamp(),
846 );
847 assert_eq!(with_email.author_display(), "alice <alice@example.com>");
848
849 let without_email = Credit::human("bob", None::<String>, test_hash(), test_timestamp());
850 assert_eq!(without_email.author_display(), "bob");
851 }
852
853 #[test]
854 fn test_credit_short_attribution() {

Callers

nothing calls this directly

Calls 2

test_timestampFunction · 0.85
test_hashFunction · 0.70

Tested by

no test coverage detected