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

Function test_author_new

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

Source from the content-addressed store, hash-verified

408
409 #[test]
410 fn test_author_new() {
411 let author = Author::new("Alice", Some("alice@example.com"));
412 assert_eq!(author.name, "Alice");
413 assert_eq!(author.email, Some("alice@example.com".to_string()));
414 assert!(author.identity.is_none());
415 }
416
417 #[test]
418 fn test_author_new_no_email() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected