use musichoard::{ collection::Collection, interface::database::IDatabase, interface::library::ILibrary, IMusicHoardBase, IMusicHoardDatabase, IMusicHoardLibrary, MusicHoard, }; #[cfg(test)] use mockall::automock; #[cfg_attr(test, automock)] pub trait IMusicHoard { fn rescan_library(&mut self) -> Result<(), musichoard::Error>; fn reload_database(&mut self) -> Result<(), musichoard::Error>; fn get_collection(&self) -> &Collection; } // GRCOV_EXCL_START impl IMusicHoard for MusicHoard { fn rescan_library(&mut self) -> Result<(), musichoard::Error> { ::rescan_library(self) } fn reload_database(&mut self) -> Result<(), musichoard::Error> { ::reload_database(self) } fn get_collection(&self) -> &Collection { ::get_collection(self) } } // GRCOV_EXCL_STOP