Make database and library optional #86

Merged
wojtek merged 4 commits from 25---make-database-and-library-optional into main 2024-01-07 11:07:36 +01:00
3 changed files with 7 additions and 4 deletions
Showing only changes of commit 031e634a6c - Show all commits

View File

@ -89,7 +89,7 @@ impl From<std::io::Error> for SaveError {
mod tests { mod tests {
use std::io; use std::io;
use super::{LoadError, SaveError, NoDatabase, IDatabase}; use super::{IDatabase, LoadError, NoDatabase, SaveError};
#[test] #[test]
#[should_panic] #[should_panic]

View File

@ -616,7 +616,10 @@ mod tests {
use mockall::predicate; use mockall::predicate;
use once_cell::sync::Lazy; use once_cell::sync::Lazy;
use crate::{database::{MockIDatabase, NoDatabase}, library::{MockILibrary, NoLibrary}}; use crate::{
database::{MockIDatabase, NoDatabase},
library::{MockILibrary, NoLibrary},
};
use super::*; use super::*;

View File

@ -136,7 +136,7 @@ impl From<Utf8Error> for Error {
mod tests { mod tests {
use std::io; use std::io;
use super::{Error, Field, Query, NoLibrary, ILibrary}; use super::{Error, Field, ILibrary, NoLibrary, Query};
#[test] #[test]
#[should_panic] #[should_panic]