Make database and library optional #86
@ -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]
|
||||||
|
@ -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::*;
|
||||||
|
|
||||||
|
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user