diff --git a/src/database/json/mod.rs b/src/database/json/mod.rs index 3d47c9f..3bf0015 100644 --- a/src/database/json/mod.rs +++ b/src/database/json/mod.rs @@ -58,7 +58,7 @@ impl IDatabase for JsonDatabase { } #[cfg(test)] -pub mod testlib; +pub mod testmod; #[cfg(test)] mod tests { @@ -69,7 +69,7 @@ mod tests { use crate::{testlib::FULL_COLLECTION, Artist, ArtistId, Collection}; use super::*; - use testlib::DATABASE_JSON; + use testmod::DATABASE_JSON; #[test] fn save() { diff --git a/src/database/json/testlib.rs b/src/database/json/testmod.rs similarity index 100% rename from src/database/json/testlib.rs rename to src/database/json/testmod.rs diff --git a/src/lib.rs b/src/lib.rs index 27aa016..1efded8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1073,11 +1073,10 @@ mod testlib; mod tests { use mockall::predicate; - use crate::library::testlib::LIBRARY_ITEMS; - use crate::testlib::{FULL_COLLECTION, LIBRARY_COLLECTION}; - use crate::{database::MockIDatabase, library::MockILibrary}; - use super::*; + use database::MockIDatabase; + use library::{testmod::LIBRARY_ITEMS, MockILibrary}; + use testlib::{FULL_COLLECTION, LIBRARY_COLLECTION}; static MUSICBRAINZ: &str = "https://musicbrainz.org/artist/d368baa8-21ca-4759-9731-0b2753071ad8"; diff --git a/src/library/beets/mod.rs b/src/library/beets/mod.rs index e344d0b..202722b 100644 --- a/src/library/beets/mod.rs +++ b/src/library/beets/mod.rs @@ -170,16 +170,16 @@ impl ILibraryPrivate for BeetsLibrary { } #[cfg(test)] -mod testlib; +mod testmod; #[cfg(test)] mod tests { use mockall::predicate; - use crate::library::testlib::LIBRARY_ITEMS; + use crate::library::testmod::LIBRARY_ITEMS; use super::*; - use testlib::LIBRARY_BEETS; + use testmod::LIBRARY_BEETS; #[test] fn test_query() { diff --git a/src/library/beets/testlib.rs b/src/library/beets/testmod.rs similarity index 100% rename from src/library/beets/testlib.rs rename to src/library/beets/testmod.rs diff --git a/src/library/mod.rs b/src/library/mod.rs index 2a9dea5..a76f3e6 100644 --- a/src/library/mod.rs +++ b/src/library/mod.rs @@ -135,7 +135,7 @@ impl From for Error { } #[cfg(test)] -pub mod testlib; +pub mod testmod; #[cfg(test)] mod tests { diff --git a/src/library/testlib.rs b/src/library/testmod.rs similarity index 100% rename from src/library/testlib.rs rename to src/library/testmod.rs