Helper: create a ChangeHeader with a fixed timestamp for deterministic tests.
(message: &str)
| 557 | |
| 558 | /// Helper: create a ChangeHeader with a fixed timestamp for deterministic tests. |
| 559 | fn fixed_header(message: &str) -> ChangeHeader { |
| 560 | ChangeHeader { |
| 561 | message: message.to_string(), |
| 562 | description: None, |
| 563 | timestamp: chrono::DateTime::parse_from_rfc3339("2025-01-15T12:00:00Z") |
| 564 | .unwrap() |
| 565 | .with_timezone(&chrono::Utc), |
| 566 | authors: Vec::new(), |
| 567 | } |
| 568 | } |
| 569 | |
| 570 | #[test] |
| 571 | fn test_hash_is_deterministic() { |
no test coverage detected