fix tests

This commit is contained in:
Clément DOUIN 2022-06-05 17:14:57 +02:00
parent 8f667def0c
commit 3c5379b24d
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72

View file

@ -33,12 +33,15 @@ pub fn list<'a, P: PrinterService, B: Backend<'a> + ?Sized>(
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use himalaya_lib::mbox::{Mbox, Mboxes}; use himalaya_lib::{
mbox::{Mbox, Mboxes},
msg::Envelopes,
};
use std::{fmt::Debug, io}; use std::{fmt::Debug, io};
use termcolor::ColorSpec; use termcolor::ColorSpec;
use crate::{ use crate::{
msg::{Envelopes, Msg}, msg::Msg,
output::{Print, PrintTable, WriteColor}, output::{Print, PrintTable, WriteColor},
}; };
@ -133,7 +136,7 @@ mod tests {
fn del_mbox(&mut self, _: &str) -> Result<()> { fn del_mbox(&mut self, _: &str) -> Result<()> {
unimplemented!(); unimplemented!();
} }
fn get_envelopes(&mut self, _: &str, _: usize, _: usize) -> Result<Box<dyn Envelopes>> { fn get_envelopes(&mut self, _: &str, _: usize, _: usize) -> Result<Envelopes> {
unimplemented!() unimplemented!()
} }
fn search_envelopes( fn search_envelopes(
@ -143,7 +146,7 @@ mod tests {
_: &str, _: &str,
_: usize, _: usize,
_: usize, _: usize,
) -> Result<Box<dyn Envelopes>> { ) -> Result<Envelopes> {
unimplemented!() unimplemented!()
} }
fn add_msg(&mut self, _: &str, _: &[u8], _: &str) -> Result<String> { fn add_msg(&mut self, _: &str, _: &[u8], _: &str) -> Result<String> {