Different naming
All checks were successful
Cargo CI / Build and Test (pull_request) Successful in 1m5s
Cargo CI / Lint (pull_request) Successful in 44s

This commit is contained in:
Wojciech Kozlowski 2024-01-21 14:21:39 +01:00
parent c5ab724aaf
commit 76526ad5b9
7 changed files with 9 additions and 10 deletions

View File

@ -58,7 +58,7 @@ impl<JDB: IJsonDatabaseBackend> IDatabase for JsonDatabase<JDB> {
} }
#[cfg(test)] #[cfg(test)]
pub mod testlib; pub mod testmod;
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
@ -69,7 +69,7 @@ mod tests {
use crate::{testlib::FULL_COLLECTION, Artist, ArtistId, Collection}; use crate::{testlib::FULL_COLLECTION, Artist, ArtistId, Collection};
use super::*; use super::*;
use testlib::DATABASE_JSON; use testmod::DATABASE_JSON;
#[test] #[test]
fn save() { fn save() {

View File

@ -1073,11 +1073,10 @@ mod testlib;
mod tests { mod tests {
use mockall::predicate; 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 super::*;
use database::MockIDatabase;
use library::{testmod::LIBRARY_ITEMS, MockILibrary};
use testlib::{FULL_COLLECTION, LIBRARY_COLLECTION};
static MUSICBRAINZ: &str = static MUSICBRAINZ: &str =
"https://musicbrainz.org/artist/d368baa8-21ca-4759-9731-0b2753071ad8"; "https://musicbrainz.org/artist/d368baa8-21ca-4759-9731-0b2753071ad8";

View File

@ -170,16 +170,16 @@ impl<BLE: IBeetsLibraryExecutor> ILibraryPrivate for BeetsLibrary<BLE> {
} }
#[cfg(test)] #[cfg(test)]
mod testlib; mod testmod;
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use mockall::predicate; use mockall::predicate;
use crate::library::testlib::LIBRARY_ITEMS; use crate::library::testmod::LIBRARY_ITEMS;
use super::*; use super::*;
use testlib::LIBRARY_BEETS; use testmod::LIBRARY_BEETS;
#[test] #[test]
fn test_query() { fn test_query() {

View File

@ -135,7 +135,7 @@ impl From<Utf8Error> for Error {
} }
#[cfg(test)] #[cfg(test)]
pub mod testlib; pub mod testmod;
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {