Skip to main content

durable_lambda_testing/
prelude.rs

1//! User-facing test re-exports for durable Lambda testing.
2//!
3//! Single import for everything needed to write durable Lambda tests:
4//!
5//! ```no_run
6//! use durable_lambda_testing::prelude::*;
7//! ```
8//!
9//! This re-exports:
10//! - [`MockDurableContext`] — builder for creating mock contexts with pre-loaded results
11//! - [`MockBackend`] and [`CheckpointCall`] — mock backend and checkpoint recording
12//! - Assertion helpers: [`assert_checkpoint_count`], [`assert_no_checkpoints`]
13//! - Core types: [`DurableContext`], [`DurableError`], [`StepOptions`], [`ExecutionMode`]
14
15pub use crate::assertions::{
16    assert_checkpoint_count, assert_no_checkpoints, assert_operation_count, assert_operation_names,
17    assert_operations,
18};
19pub use crate::mock_backend::{
20    BatchCallCounter, CheckpointCall, CheckpointRecorder, MockBackend, OperationRecord,
21    OperationRecorder,
22};
23pub use crate::mock_context::MockDurableContext;
24pub use durable_lambda_core::context::DurableContext;
25pub use durable_lambda_core::error::DurableError;
26pub use durable_lambda_core::types::{ExecutionMode, StepOptions};