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

Function fixed_header

atomic-core/src/change/format_v3/writer/tests.rs:544–553  ·  view source on GitHub ↗

Helper: create a ChangeHeader with a fixed timestamp for deterministic tests.

(message: &str)

Source from the content-addressed store, hash-verified

542
543/// Helper: create a ChangeHeader with a fixed timestamp for deterministic tests.
544fn 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]
556fn test_hash_is_deterministic() {

Callers 2

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected