pub mod axioms;
pub mod client;
pub mod content;
pub mod examples;
pub mod faulty_transport;
pub mod gateway;
pub mod liveness;
pub mod sessions;
pub mod storage;
pub use client::{
TestClient, TestClientOptions, TestSession, TestSessionOptions, create_test_client,
create_test_session,
};
pub use content::{ContentCall, InMemoryContent};
pub use faulty_transport::{FaultAction, FaultyTransport, RequestLogEntry, retry_key_of};
pub use gateway::StubGateway;
pub use sessions::ScriptedSessions;
pub use storage::SharedStorage;
pub fn as_id<T>(text: &str) -> T
where
T: std::str::FromStr<Err = crate::types::InvalidIdentifier>,
{
text.parse()
.unwrap_or_else(|not_one| panic!("a test named an id that is not one: {not_one}"))
}