(id: WorkingCopyId, location_byte: u8, desired_view: u64)
| 106 | use crate::pristine::{MutTxnT, Pristine, ViewScope}; |
| 107 | |
| 108 | fn record(id: WorkingCopyId, location_byte: u8, desired_view: u64) -> WorkingCopyRecord { |
| 109 | WorkingCopyRecord { |
| 110 | id, |
| 111 | location_fingerprint: Hash::from_bytes([location_byte; 32]), |
| 112 | desired_view, |
| 113 | desired_state: Merkle::from_bytes([3; 32]), |
| 114 | materialized_state: None, |
| 115 | materialized_manifest: None, |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | #[test] |
| 120 | fn working_copy_record_survives_existing_and_readonly_reopen() { |
no outgoing calls