pub async fn assert_operations(
operations: &Arc<Mutex<Vec<OperationRecord>>>,
expected: &[&str],
)Expand description
Assert the recorded operation sequence matches the expected "type:name" strings.
Each string should be in "type:name" format (e.g., "step:validate",
"wait:cooldown"). The assertion checks both the count and exact order.
§Panics
Panics with a diff showing the first divergence if the sequences don’t match.
§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_operations(&ops, &["step:validate"]).await;