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

Function test_header_first_author

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

Source from the content-addressed store, hash-verified

598
599 #[test]
600 fn test_header_first_author() {
601 let header = ChangeHeader::builder()
602 .message("Test")
603 .author(Author::new("Alice", None::<String>))
604 .author(Author::new("Bob", None::<String>))
605 .build();
606
607 assert_eq!(header.first_author().unwrap().name, "Alice");
608 }
609
610 #[test]
611 fn test_header_first_author_none() {

Callers

nothing calls this directly

Calls 3

authorMethod · 0.80
buildMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected