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

Function test_author_display_short

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

Source from the content-addressed store, hash-verified

430
431 #[test]
432 fn test_author_display_short() {
433 let with_email = Author::new("Alice", Some("alice@example.com"));
434 assert_eq!(with_email.display_short(), "Alice <alice@example.com>");
435
436 let without_email = Author::new("Bob", None::<String>);
437 assert_eq!(without_email.display_short(), "Bob");
438 }
439
440 #[test]
441 fn test_author_display_trait() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected