Skip to main content

assert_no_checkpoints

Function assert_no_checkpoints 

Source
pub async fn assert_no_checkpoints(calls: &Arc<Mutex<Vec<CheckpointCall>>>)
Expand description

Assert that no checkpoint calls were made (pure replay test).

Equivalent to assert_checkpoint_count(calls, 0).

§Panics

Panics if any checkpoint calls were recorded.

§Examples

use durable_lambda_testing::prelude::*;

let (mut ctx, calls, _ops) = MockDurableContext::new()
    .with_step_result("validate", r#"true"#)
    .build()
    .await;

let _: Result<bool, String> = ctx.step("validate", || async { Ok(false) }).await.unwrap();

assert_no_checkpoints(&calls).await;