From 78dd97cb12abffa85e3c23506aba3fe58a863d4f Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 16 Apr 2023 20:39:57 -0400 Subject: [PATCH] all of these "tests" modules don't actually need to be public --- ggdt/src/graphics/bitmap/blit.rs | 2 +- ggdt/src/graphics/bitmap/gif.rs | 2 +- ggdt/src/graphics/bitmap/mod.rs | 2 +- ggdt/src/graphics/bitmap/pcx.rs | 2 +- ggdt/src/graphics/bitmap/png.rs | 2 +- ggdt/src/graphics/bitmap/primitives.rs | 2 +- ggdt/src/graphics/bitmapatlas.rs | 2 +- ggdt/src/graphics/font.rs | 2 +- ggdt/src/lib.rs | 2 +- ggdt/src/math/circle.rs | 2 +- ggdt/src/math/matrix3x3.rs | 2 +- ggdt/src/math/mod.rs | 2 +- ggdt/src/math/rect.rs | 2 +- ggdt/src/math/vector2.rs | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/ggdt/src/graphics/bitmap/blit.rs b/ggdt/src/graphics/bitmap/blit.rs index fd45525..f70dcd3 100644 --- a/ggdt/src/graphics/bitmap/blit.rs +++ b/ggdt/src/graphics/bitmap/blit.rs @@ -471,7 +471,7 @@ impl Bitmap { } #[cfg(test)] -pub mod tests { +mod tests { use super::*; #[test] diff --git a/ggdt/src/graphics/bitmap/gif.rs b/ggdt/src/graphics/bitmap/gif.rs index d8440df..090ac60 100644 --- a/ggdt/src/graphics/bitmap/gif.rs +++ b/ggdt/src/graphics/bitmap/gif.rs @@ -547,7 +547,7 @@ impl RgbaBitmap { } #[cfg(test)] -pub mod tests { +mod tests { use std::path::PathBuf; use tempfile::TempDir; diff --git a/ggdt/src/graphics/bitmap/mod.rs b/ggdt/src/graphics/bitmap/mod.rs index 78ad678..eb20d7d 100644 --- a/ggdt/src/graphics/bitmap/mod.rs +++ b/ggdt/src/graphics/bitmap/mod.rs @@ -284,7 +284,7 @@ impl Bitmap { } #[cfg(test)] -pub mod tests { +mod tests { use claim::assert_matches; use super::*; diff --git a/ggdt/src/graphics/bitmap/pcx.rs b/ggdt/src/graphics/bitmap/pcx.rs index bfa4c12..0f40faa 100644 --- a/ggdt/src/graphics/bitmap/pcx.rs +++ b/ggdt/src/graphics/bitmap/pcx.rs @@ -279,7 +279,7 @@ impl RgbaBitmap { } #[cfg(test)] -pub mod tests { +mod tests { use std::path::PathBuf; use tempfile::TempDir; diff --git a/ggdt/src/graphics/bitmap/png.rs b/ggdt/src/graphics/bitmap/png.rs index 5a17ffa..48f3ab7 100644 --- a/ggdt/src/graphics/bitmap/png.rs +++ b/ggdt/src/graphics/bitmap/png.rs @@ -615,7 +615,7 @@ impl RgbaBitmap { } #[cfg(test)] -pub mod tests { +mod tests { use std::path::PathBuf; use claim::*; diff --git a/ggdt/src/graphics/bitmap/primitives.rs b/ggdt/src/graphics/bitmap/primitives.rs index c868005..f5537bd 100644 --- a/ggdt/src/graphics/bitmap/primitives.rs +++ b/ggdt/src/graphics/bitmap/primitives.rs @@ -524,7 +524,7 @@ impl Bitmap { } #[cfg(test)] -pub mod tests { +mod tests { use super::*; #[rustfmt::skip] diff --git a/ggdt/src/graphics/bitmapatlas.rs b/ggdt/src/graphics/bitmapatlas.rs index 9e7e51d..2e9c560 100644 --- a/ggdt/src/graphics/bitmapatlas.rs +++ b/ggdt/src/graphics/bitmapatlas.rs @@ -133,7 +133,7 @@ where } #[cfg(test)] -pub mod tests { +mod tests { use claim::*; use crate::graphics::bitmap::indexed::IndexedBitmap; diff --git a/ggdt/src/graphics/font.rs b/ggdt/src/graphics/font.rs index 09f4e8c..796bd5d 100644 --- a/ggdt/src/graphics/font.rs +++ b/ggdt/src/graphics/font.rs @@ -237,7 +237,7 @@ impl Font for BitmaskFont { } #[cfg(test)] -pub mod tests { +mod tests { use std::path::PathBuf; use super::*; diff --git a/ggdt/src/lib.rs b/ggdt/src/lib.rs index 3383b4d..a2cf52a 100644 --- a/ggdt/src/lib.rs +++ b/ggdt/src/lib.rs @@ -13,7 +13,7 @@ pub mod prelude; // using this to hold common unit test helper functions // (since apparently rust doesn't really have a great alternative ... ?) #[cfg(test)] -pub mod tests { +mod tests { use std::fs::File; use std::io; use std::io::{BufReader, Read}; diff --git a/ggdt/src/math/circle.rs b/ggdt/src/math/circle.rs index 4ada1a2..1a8de8b 100644 --- a/ggdt/src/math/circle.rs +++ b/ggdt/src/math/circle.rs @@ -68,7 +68,7 @@ impl Circle { } #[cfg(test)] -pub mod tests { +mod tests { use super::*; #[test] diff --git a/ggdt/src/math/matrix3x3.rs b/ggdt/src/math/matrix3x3.rs index c3be16f..6c670cd 100644 --- a/ggdt/src/math/matrix3x3.rs +++ b/ggdt/src/math/matrix3x3.rs @@ -278,7 +278,7 @@ impl Mul for Matrix3x3 { } #[cfg(test)] -pub mod tests { +mod tests { use crate::math::*; use super::*; diff --git a/ggdt/src/math/mod.rs b/ggdt/src/math/mod.rs index b7d70ee..db98324 100644 --- a/ggdt/src/math/mod.rs +++ b/ggdt/src/math/mod.rs @@ -195,7 +195,7 @@ impl WrappingRadians for f32 { } #[cfg(test)] -pub mod tests { +mod tests { use super::*; #[test] diff --git a/ggdt/src/math/rect.rs b/ggdt/src/math/rect.rs index 458acc2..8d2ad1b 100644 --- a/ggdt/src/math/rect.rs +++ b/ggdt/src/math/rect.rs @@ -160,7 +160,7 @@ impl Rect { } #[cfg(test)] -pub mod tests { +mod tests { use super::*; #[test] diff --git a/ggdt/src/math/vector2.rs b/ggdt/src/math/vector2.rs index 62413bf..95bdbd2 100644 --- a/ggdt/src/math/vector2.rs +++ b/ggdt/src/math/vector2.rs @@ -253,7 +253,7 @@ impl MulAssign for Vector2 { } #[cfg(test)] -pub mod tests { +mod tests { use crate::math::*; use super::*;