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

Function record

atomic-core/src/pristine/traits/working_copy.rs:213–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211 use super::*;
212
213 fn record() -> WorkingCopyRecord {
214 WorkingCopyRecord {
215 id: WorkingCopyId::from_bytes([1; 16]),
216 location_fingerprint: Hash::from_bytes([2; 32]),
217 desired_view: 0x0102_0304_0506_0708,
218 desired_state: Merkle::from_bytes([3; 32]),
219 materialized_state: Some(Merkle::from_bytes([4; 32])),
220 materialized_manifest: Some(Hash::from_bytes([5; 32])),
221 }
222 }
223
224 #[test]
225 fn working_copy_record_v1_has_stable_layout_and_roundtrips() {

Calls

no outgoing calls