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

Function make_history_entry

atomic-cli/tests/it/push_integration_test.rs:138–147  ·  view source on GitHub ↗
(sequence: u64, hash_seed: &str)

Source from the content-addressed store, hash-verified

136// Test Helpers
137
138fn make_history_entry(sequence: u64, hash_seed: &str) -> HistoryEntry {
139 HistoryEntry {
140 sequence,
141 hash: Hash::of(hash_seed.as_bytes()),
142 state: Merkle::ZERO,
143 node_id: NodeId::from(sequence),
144 header: None,
145 is_tagged: false,
146 }
147}
148
149fn make_changelist_entry(sequence: u64, hash_seed: &str) -> ChangelistEntry {
150 let hash = Hash::of(hash_seed.as_bytes());

Callers

nothing calls this directly

Calls 1

as_bytesMethod · 0.45

Tested by

no test coverage detected