Skip to main content

create_test_operations

Function create_test_operations 

Source
pub fn create_test_operations(
    count: usize,
    seed: u64,
    starting_loc: u64,
) -> Vec<Operation> 
Expand description

Create deterministic test operations for demonstration purposes.

Generates Set operations and periodic Commit operations. Every commit in the stream carries starting_loc as its inactivity floor. Pass 0 for a fresh db; for growth, pass the live db’s super::ExampleDatabase::current_floor so floors stay monotonic.