()
| 542 | |
| 543 | #[test] |
| 544 | fn test_header_builder_with_timestamp() { |
| 545 | let ts = DateTime::parse_from_rfc3339("2024-01-15T10:30:00Z") |
| 546 | .unwrap() |
| 547 | .with_timezone(&Utc); |
| 548 | |
| 549 | let header = ChangeHeader::builder() |
| 550 | .message("Test") |
| 551 | .timestamp(ts) |
| 552 | .build(); |
| 553 | |
| 554 | assert_eq!(header.timestamp, ts); |
| 555 | } |
| 556 | |
| 557 | #[test] |
| 558 | fn test_header_try_build_success() { |