24 lines
637 B
Rust
24 lines
637 B
Rust
//! TDD test for ETL engine syntax
|
|
//! These tests ensure the engine module compiles correctly
|
|
|
|
use rtx_etl::engine::{EtlConfig, EtlEngine};
|
|
|
|
#[test]
|
|
fn test_etl_config_default() {
|
|
// Test that default config can be created
|
|
let config = EtlConfig::default();
|
|
|
|
// Should have reasonable defaults
|
|
assert!(config.system.max_concurrent_tasks > 0);
|
|
assert!(config.system.task_timeout_ms > 0);
|
|
}
|
|
|
|
#[tokio::test]
|
|
async fn test_etl_engine_creation() {
|
|
// Test creating an ETL engine with default config
|
|
let engine = EtlEngine::new().await;
|
|
|
|
// Engine should be created successfully
|
|
assert!(engine.is_ok());
|
|
}
|