(
config: Config,
)
| 15 | use warp::Filter; |
| 16 | |
| 17 | fn filter( |
| 18 | config: Config, |
| 19 | ) -> impl Filter<Extract = (impl warp::Reply,), Error = std::convert::Infallible> + Clone { |
| 20 | let shared_state: Arc<SharedSimulationState> = Arc::new(SharedSimulationState { |
| 21 | evms: Arc::new(DashMap::new()), |
| 22 | }); |
| 23 | |
| 24 | warp::any() |
| 25 | .and(simulate_routes(config, shared_state)) |
| 26 | .recover(handle_rejection) |
| 27 | } |
| 28 | |
| 29 | #[tokio::test(flavor = "multi_thread")] |
| 30 | async fn post_simulate_file() { |
no test coverage detected