all of these "tests" modules don't actually need to be public

This commit is contained in:
Gered 2023-04-16 20:39:57 -04:00
parent c6549e37a9
commit 78dd97cb12
14 changed files with 14 additions and 14 deletions

View file

@ -471,7 +471,7 @@ impl<PixelType: Pixel> Bitmap<PixelType> {
} }
#[cfg(test)] #[cfg(test)]
pub mod tests { mod tests {
use super::*; use super::*;
#[test] #[test]

View file

@ -547,7 +547,7 @@ impl RgbaBitmap {
} }
#[cfg(test)] #[cfg(test)]
pub mod tests { mod tests {
use std::path::PathBuf; use std::path::PathBuf;
use tempfile::TempDir; use tempfile::TempDir;

View file

@ -284,7 +284,7 @@ impl<PixelType: Pixel> Bitmap<PixelType> {
} }
#[cfg(test)] #[cfg(test)]
pub mod tests { mod tests {
use claim::assert_matches; use claim::assert_matches;
use super::*; use super::*;

View file

@ -279,7 +279,7 @@ impl RgbaBitmap {
} }
#[cfg(test)] #[cfg(test)]
pub mod tests { mod tests {
use std::path::PathBuf; use std::path::PathBuf;
use tempfile::TempDir; use tempfile::TempDir;

View file

@ -615,7 +615,7 @@ impl RgbaBitmap {
} }
#[cfg(test)] #[cfg(test)]
pub mod tests { mod tests {
use std::path::PathBuf; use std::path::PathBuf;
use claim::*; use claim::*;

View file

@ -524,7 +524,7 @@ impl<PixelType: Pixel> Bitmap<PixelType> {
} }
#[cfg(test)] #[cfg(test)]
pub mod tests { mod tests {
use super::*; use super::*;
#[rustfmt::skip] #[rustfmt::skip]

View file

@ -133,7 +133,7 @@ where
} }
#[cfg(test)] #[cfg(test)]
pub mod tests { mod tests {
use claim::*; use claim::*;
use crate::graphics::bitmap::indexed::IndexedBitmap; use crate::graphics::bitmap::indexed::IndexedBitmap;

View file

@ -237,7 +237,7 @@ impl Font for BitmaskFont {
} }
#[cfg(test)] #[cfg(test)]
pub mod tests { mod tests {
use std::path::PathBuf; use std::path::PathBuf;
use super::*; use super::*;

View file

@ -13,7 +13,7 @@ pub mod prelude;
// using this to hold common unit test helper functions // using this to hold common unit test helper functions
// (since apparently rust doesn't really have a great alternative ... ?) // (since apparently rust doesn't really have a great alternative ... ?)
#[cfg(test)] #[cfg(test)]
pub mod tests { mod tests {
use std::fs::File; use std::fs::File;
use std::io; use std::io;
use std::io::{BufReader, Read}; use std::io::{BufReader, Read};

View file

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

View file

@ -278,7 +278,7 @@ impl Mul<Vector2> for Matrix3x3 {
} }
#[cfg(test)] #[cfg(test)]
pub mod tests { mod tests {
use crate::math::*; use crate::math::*;
use super::*; use super::*;

View file

@ -195,7 +195,7 @@ impl WrappingRadians for f32 {
} }
#[cfg(test)] #[cfg(test)]
pub mod tests { mod tests {
use super::*; use super::*;
#[test] #[test]

View file

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

View file

@ -253,7 +253,7 @@ impl MulAssign<Matrix3x3> for Vector2 {
} }
#[cfg(test)] #[cfg(test)]
pub mod tests { mod tests {
use crate::math::*; use crate::math::*;
use super::*; use super::*;