Skip to main content

simulate

Function simulate 

Source
pub fn simulate(
    base: &Path,
    specs: &[OpSpec],
    disk: &dyn Disk,
    today: &str,
) -> Result<Plan, String>
Expand description

Simulate the whole batch over disk, rooted at base, stamping today into new concepts and log entries. Returns the plan (actions + pending writes), or the first op’s error — in which case the caller writes nothing.