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

Function fixed_header

atomic-core/src/change/format_v3/writer/tests.rs:559–568  ·  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

557
558/// Helper: create a ChangeHeader with a fixed timestamp for deterministic tests.
559fn 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]
571fn test_hash_is_deterministic() {

Callers 2

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected