From 59fe4a4cda3aa3ae7c32d1564598dca01f210886 Mon Sep 17 00:00:00 2001 From: gengteng Date: Sat, 30 Sep 2023 15:40:47 +0800 Subject: [PATCH] Add missing unit tests for Cached and WithRejection --- src/test.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/test.rs b/src/test.rs index f7ba171..ada4d58 100644 --- a/src/test.rs +++ b/src/test.rs @@ -424,18 +424,33 @@ async fn test_main() -> anyhow::Result<()> { test_executor .execute::>(Method::POST, extra::route::CACHED) .await?; + test_executor + .execute::>(Method::POST, extra::route::CACHED_EX) + .await?; test_executor .execute::>( Method::POST, extra::route::WITH_REJECTION, ) .await?; + test_executor + .execute::>( + Method::POST, + extra::route::WITH_REJECTION_EX, + ) + .await?; test_executor .execute::, WithRejectionValidRejection>>( Method::POST, extra::route::WITH_REJECTION_VALID, ) .await?; + test_executor + .execute::, WithRejectionValidRejection>>( + Method::POST, + extra::route::WITH_REJECTION_VALID_EX, + ) + .await?; } #[cfg(feature = "extra_typed_path")]