Create a change with the given content bytes and return its hash.
(store: &MemoryChangeStore, content: &[u8])
| 413 | |
| 414 | /// Create a change with the given content bytes and return its hash. |
| 415 | fn make_change(store: &MemoryChangeStore, content: &[u8]) -> Hash { |
| 416 | let mut change = Change::empty(ChangeHeader::new("test change")); |
| 417 | change.contents = content.to_vec(); |
| 418 | store.insert_change(change).expect("insert_change") |
| 419 | } |
| 420 | |
| 421 | // ---- TxnOnlyMergeEngine tests ----------------------------------------- |
| 422 |