refactor(test): use tests module for tests

This commit is contained in:
orhun 2021-08-09 22:50:01 +03:00
parent e7ad855f4d
commit cc385d1aca
No known key found for this signature in database
GPG key ID: F83424824B3E4B90
5 changed files with 5 additions and 5 deletions

View file

@ -26,7 +26,7 @@ pub fn check(host: &str, headers: &HeaderMap, token: Option<String>) -> Result<(
}
#[cfg(test)]
mod test {
mod tests {
use super::*;
use actix_web::http::HeaderValue;

View file

@ -51,7 +51,7 @@ impl Config {
}
#[cfg(test)]
mod test {
mod tests {
use super::*;
use std::env;

View file

@ -48,7 +48,7 @@ impl ContentDisposition {
}
#[cfg(test)]
mod test {
mod tests {
use super::*;
#[test]

View file

@ -118,7 +118,7 @@ impl Paste {
}
#[cfg(test)]
mod test {
mod tests {
use super::*;
use crate::random::{RandomURLConfig, RandomURLType};
use std::env;

View file

@ -54,7 +54,7 @@ impl Default for RandomURLType {
}
#[cfg(test)]
mod test {
mod tests {
use super::*;
#[test]