From cc385d1acaf800e79ce4e2878a625e5f23bf8273 Mon Sep 17 00:00:00 2001 From: orhun Date: Mon, 9 Aug 2021 22:50:01 +0300 Subject: [PATCH] refactor(test): use `tests` module for tests --- src/auth.rs | 2 +- src/config.rs | 2 +- src/header.rs | 2 +- src/paste.rs | 2 +- src/random.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/auth.rs b/src/auth.rs index 38d785d..ed628ec 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -26,7 +26,7 @@ pub fn check(host: &str, headers: &HeaderMap, token: Option) -> Result<( } #[cfg(test)] -mod test { +mod tests { use super::*; use actix_web::http::HeaderValue; diff --git a/src/config.rs b/src/config.rs index dfab964..8dbb168 100644 --- a/src/config.rs +++ b/src/config.rs @@ -51,7 +51,7 @@ impl Config { } #[cfg(test)] -mod test { +mod tests { use super::*; use std::env; diff --git a/src/header.rs b/src/header.rs index 542fa7d..d0db1e7 100644 --- a/src/header.rs +++ b/src/header.rs @@ -48,7 +48,7 @@ impl ContentDisposition { } #[cfg(test)] -mod test { +mod tests { use super::*; #[test] diff --git a/src/paste.rs b/src/paste.rs index 3ab5fce..b87fb33 100644 --- a/src/paste.rs +++ b/src/paste.rs @@ -118,7 +118,7 @@ impl Paste { } #[cfg(test)] -mod test { +mod tests { use super::*; use crate::random::{RandomURLConfig, RandomURLType}; use std::env; diff --git a/src/random.rs b/src/random.rs index d72c798..1ee5242 100644 --- a/src/random.rs +++ b/src/random.rs @@ -54,7 +54,7 @@ impl Default for RandomURLType { } #[cfg(test)] -mod test { +mod tests { use super::*; #[test]