Create a change with the given content bytes and return its hash.
(store: &MemoryChangeStore, content: &[u8])
| 525 | |
| 526 | /// Create a change with the given content bytes and return its hash. |
| 527 | fn make_change(store: &MemoryChangeStore, content: &[u8]) -> Hash { |
| 528 | let mut change = Change::empty(ChangeHeader::new("test change")); |
| 529 | change.contents = content.to_vec(); |
| 530 | store.insert_change(change).expect("insert_change") |
| 531 | } |
| 532 | |
| 533 | // ---- TxnOnlyMergeEngine tests ----------------------------------------- |
| 534 |