all of these "tests" modules don't actually need to be public
This commit is contained in:
parent
c6549e37a9
commit
78dd97cb12
|
@ -471,7 +471,7 @@ impl<PixelType: Pixel> Bitmap<PixelType> {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -547,7 +547,7 @@ impl RgbaBitmap {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
mod tests {
|
||||
use std::path::PathBuf;
|
||||
|
||||
use tempfile::TempDir;
|
||||
|
|
|
@ -284,7 +284,7 @@ impl<PixelType: Pixel> Bitmap<PixelType> {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
mod tests {
|
||||
use claim::assert_matches;
|
||||
|
||||
use super::*;
|
||||
|
|
|
@ -279,7 +279,7 @@ impl RgbaBitmap {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
mod tests {
|
||||
use std::path::PathBuf;
|
||||
|
||||
use tempfile::TempDir;
|
||||
|
|
|
@ -615,7 +615,7 @@ impl RgbaBitmap {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
mod tests {
|
||||
use std::path::PathBuf;
|
||||
|
||||
use claim::*;
|
||||
|
|
|
@ -524,7 +524,7 @@ impl<PixelType: Pixel> Bitmap<PixelType> {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[rustfmt::skip]
|
||||
|
|
|
@ -133,7 +133,7 @@ where
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
mod tests {
|
||||
use claim::*;
|
||||
|
||||
use crate::graphics::bitmap::indexed::IndexedBitmap;
|
||||
|
|
|
@ -237,7 +237,7 @@ impl Font for BitmaskFont {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
mod tests {
|
||||
use std::path::PathBuf;
|
||||
|
||||
use super::*;
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -68,7 +68,7 @@ impl Circle {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -278,7 +278,7 @@ impl Mul<Vector2> for Matrix3x3 {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
mod tests {
|
||||
use crate::math::*;
|
||||
|
||||
use super::*;
|
||||
|
|
|
@ -195,7 +195,7 @@ impl WrappingRadians for f32 {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -160,7 +160,7 @@ impl Rect {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -253,7 +253,7 @@ impl MulAssign<Matrix3x3> for Vector2 {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
mod tests {
|
||||
use crate::math::*;
|
||||
|
||||
use super::*;
|
||||
|
|
Loading…
Reference in a new issue