MCPcopy Create free account
hub / github.com/EnsoBuild/temper / filter

Function filter

tests/api.rs:17–27  ·  view source on GitHub ↗
(
    config: Config,
)

Source from the content-addressed store, hash-verified

15use warp::Filter;
16
17fn 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")]
30async fn post_simulate_file() {

Calls 1

simulate_routesFunction · 0.85

Tested by

no test coverage detected