Path: blob/main/crates/wasi-http/tests/all/main.rs
3088 views
// Assert that each of `sync` and `async` below are testing everything through1// assertion of the existence of the test function itself.2macro_rules! assert_test_exists {3($name:ident) => {4#[expect(unused_imports, reason = "only here to ensure a name exists")]5use self::$name as _;6};7}89mod http_server;10mod p2;11#[cfg(feature = "p3")]12mod p3;1314mod body {15use http_body_util::{BodyExt, Empty, Full, combinators::BoxBody};16use hyper::Error;17use hyper::body::Bytes;1819pub fn full(bytes: Bytes) -> BoxBody<Bytes, Error> {20BoxBody::new(Full::new(bytes).map_err(|x| match x {}))21}2223pub fn empty() -> BoxBody<Bytes, Error> {24BoxBody::new(Empty::new().map_err(|x| match x {}))25}26}272829