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

Function test_builder_authors_iterator

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

Source from the content-addressed store, hash-verified

695
696 #[test]
697 fn test_builder_authors_iterator() {
698 let authors = vec![
699 Author::new("Alice", None::<String>),
700 Author::new("Bob", None::<String>),
701 ];
702
703 let header = ChangeHeader::builder()
704 .message("Test")
705 .authors(authors)
706 .build();
707
708 assert_eq!(header.authors.len(), 2);
709 }
710
711 #[test]
712 fn test_builder_chaining() {

Callers

nothing calls this directly

Calls 3

buildMethod · 0.45
authorsMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected