pub async fn assert_operation_count(
operations: &Arc<Mutex<Vec<OperationRecord>>>,
expected: usize,
)Expand description
Assert the total count of recorded operations.
§Panics
Panics if the actual count doesn’t match expected.
§Examples
use durable_lambda_testing::prelude::*;
let (mut ctx, _calls, ops) = MockDurableContext::new()
.build()
.await;
let _: Result<i32, String> = ctx.step("validate", || async { Ok(42) }).await.unwrap();
assert_operation_count(&ops, 1).await;