mod integration;
use integration::routing_tests::RoutingTests;
use anyhow::Result;
#[tokio::test]
async fn test_all_routing_functionality() -> Result<()> {
let routing_tests = RoutingTests::new();
routing_tests.run_all_tests().await
}
#[tokio::test]
async fn test_multi_hop_connections() -> Result<()> {
let routing_tests = RoutingTests::new();
routing_tests.setup().await?;
let result = routing_tests.test_multi_hop_connections().await;
routing_tests.cleanup().await?;
result
}
#[tokio::test]
async fn test_connection_routing_multiplexing() -> Result<()> {
let routing_tests = RoutingTests::new();
routing_tests.setup().await?;
let result = routing_tests.test_connection_routing_multiplexing().await;
routing_tests.cleanup().await?;
result
}
#[tokio::test]
async fn test_connection_failure_recovery() -> Result<()> {
let routing_tests = RoutingTests::new();
routing_tests.setup().await?;
let result = routing_tests.test_connection_failure_recovery().await;
routing_tests.cleanup().await?;
result
}
#[tokio::test]
async fn test_load_balancing_connection_pooling() -> Result<()> {
let routing_tests = RoutingTests::new();
routing_tests.setup().await?;
let result = routing_tests.test_load_balancing_connection_pooling().await;
routing_tests.cleanup().await?;
result
}
#[tokio::test]
async fn test_routing_performance() -> Result<()> {
let routing_tests = RoutingTests::new();
routing_tests.setup().await?;
let result = routing_tests.test_routing_performance().await;
routing_tests.cleanup().await?;
result
}