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

Function test_header_has_authors

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

Source from the content-addressed store, hash-verified

586
587 #[test]
588 fn test_header_has_authors() {
589 let without = ChangeHeader::new("Test");
590 assert!(!without.has_authors());
591
592 let with = ChangeHeader::builder()
593 .message("Test")
594 .author(Author::new("Alice", None::<String>))
595 .build();
596 assert!(with.has_authors());
597 }
598
599 #[test]
600 fn test_header_first_author() {

Callers

nothing calls this directly

Calls 3

authorMethod · 0.80
buildMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected