From 6d2aac1df3176527d54c660b63d1671c9a8c8a2e Mon Sep 17 00:00:00 2001 From: Timo Caktu Date: Fri, 4 Aug 2023 15:14:24 +0200 Subject: [PATCH] added test funtion for full_uri method --- actix-web/src/request.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/actix-web/src/request.rs b/actix-web/src/request.rs index f49f5e1f4..efb84b2a9 100644 --- a/actix-web/src/request.rs +++ b/actix-web/src/request.rs @@ -975,4 +975,11 @@ mod tests { assert!(format!("{:?}", req).contains(location_header)); } + + #[test] + fn check_full_uri() { + let req = TestRequest::with_uri("/api?id=4&name=foo").to_http_request(); + + assert_eq!(req.full_uri(), "http://localhost:8080/api?id=4&name=foo"); + } }