1 2 3 4 5 6 7 8 9 10 11 12 13 14
use axum::Router; use doido_controller::stack::MiddlewareStack; #[test] fn test_middleware_stack_builds_without_panic() { let app: Router = Router::new(); let _layered = MiddlewareStack::new().apply(app); } #[test] fn test_middleware_stack_with_cors_builds() { let app: Router = Router::new(); let _layered = MiddlewareStack::new().with_cors().apply(app); }