()
| 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() { |
nothing calls this directly
no test coverage detected