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

Function create_test_history_entry

atomic-cli/src/commands/pull/helpers.rs:464–468  ·  view source on GitHub ↗

Create a test history entry for testing.

(hash_bytes: &[u8], sequence: u64)

Source from the content-addressed store, hash-verified

462
463 /// Create a test history entry for testing.
464 fn create_test_history_entry(hash_bytes: &[u8], sequence: u64) -> HistoryEntry {
465 let hash = Hash::of(hash_bytes);
466 let state = Merkle::of(hash_bytes);
467 HistoryEntry::new(sequence, NodeId::ROOT, hash, state)
468 }
469
470 /// Create a test changelist entry for testing.
471 fn create_test_changelist_entry(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected