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

Function test_header_builder_full

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

Source from the content-addressed store, hash-verified

525
526 #[test]
527 fn test_header_builder_full() {
528 let header = ChangeHeader::builder()
529 .message("Add feature")
530 .description("This adds the widget feature")
531 .author(Author::new("Alice", Some("alice@example.com")))
532 .author(Author::new("Bob", None::<String>))
533 .build();
534
535 assert_eq!(header.message, "Add feature");
536 assert_eq!(
537 header.description,
538 Some("This adds the widget feature".to_string())
539 );
540 assert_eq!(header.authors.len(), 2);
541 }
542
543 #[test]
544 fn test_header_builder_with_timestamp() {

Callers

nothing calls this directly

Calls 4

authorMethod · 0.80
buildMethod · 0.45
descriptionMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected