mabi-modbus 1.4.0

Mabinogion - Modbus TCP/RTU simulator
Documentation
//! Testing utilities and performance validation framework.
//!
//! This module provides comprehensive testing infrastructure for:
//! - Large-scale performance validation (10K+ connections, 100K+ TPS)
//! - Memory profiling and leak detection
//! - Scalability benchmarking
//! - Stress testing helpers
//!
//! # Example
//!
//! ```rust,ignore
//! use mabi_modbus::testing::{
//!     PerformanceValidator, ScaleTest, MemoryProfiler, TestReport
//! };
//!
//! #[tokio::test]
//! async fn test_large_scale() {
//!     let validator = PerformanceValidator::new()
//!         .target_connections(10_000)
//!         .target_tps(100_000)
//!         .duration(Duration::from_secs(60));
//!
//!     let report = validator.run().await.unwrap();
//!     assert!(report.passed());
//! }
//! ```

pub mod load_generator;
pub mod memory;
pub mod performance;
pub mod report;

pub use load_generator::{ConnectionSimulator, LoadConfig, LoadGenerator, LoadPattern};
pub use memory::{AllocationTracker, MemoryProfiler, MemoryReport, MemorySnapshot};
pub use performance::{
    PerformanceConfig, PerformanceTarget, PerformanceValidator, ValidationResult,
};
pub use report::{TestMetrics, TestReport, TestSummary};