Skip to main content

rustvello_test_suite/
lib.rs

1//! Shared test definitions for rustvello backend implementations.
2//!
3//! This crate provides reusable async test functions that exercise the
4//! abstract traits ([`Broker`], [`Orchestrator`], [`StateBackend`], etc.)
5//! Each backend crate (mem, sqlite, redis, …) calls these functions with
6//! its own concrete implementation to verify consistent behavior.
7//!
8//! # Usage
9//!
10//! ```rust,ignore
11//! // In crates/rustvello-mem/tests/suite.rs
12//! use rustvello_mem::broker::MemBroker;
13//!
14//! #[tokio::test]
15//! async fn suite_broker_route_and_retrieve() {
16//!     let broker = MemBroker::new();
17//!     rustvello_test_suite::broker::test_route_and_retrieve(&broker).await;
18//! }
19//! ```
20
21pub mod broker;
22pub mod client_data_store;
23pub mod concurrency;
24pub mod helpers;
25pub mod isolation;
26pub mod lifecycle;
27pub mod orchestrator;
28pub mod state_backend;
29pub mod trigger;