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

Function test_author_equality

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

Source from the content-addressed store, hash-verified

474
475 #[test]
476 fn test_author_equality() {
477 let a1 = Author::new("Alice", Some("alice@example.com"));
478 let a2 = Author::new("Alice", Some("alice@example.com"));
479 let a3 = Author::new("Alice", None::<String>);
480
481 assert_eq!(a1, a2);
482 assert_ne!(a1, a3);
483 }
484
485 #[test]
486 fn test_author_json_roundtrip() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected