Helper: create a ChangeHeader with a fixed timestamp for deterministic tests.
(message: &str)
| 542 | |
| 543 | /// Helper: create a ChangeHeader with a fixed timestamp for deterministic tests. |
| 544 | fn fixed_header(message: &str) -> ChangeHeader { |
| 545 | ChangeHeader { |
| 546 | message: message.to_string(), |
| 547 | description: None, |
| 548 | timestamp: chrono::DateTime::parse_from_rfc3339("2025-01-15T12:00:00Z") |
| 549 | .unwrap() |
| 550 | .with_timezone(&chrono::Utc), |
| 551 | authors: Vec::new(), |
| 552 | } |
| 553 | } |
| 554 | |
| 555 | #[test] |
| 556 | fn test_hash_is_deterministic() { |
no test coverage detected