mirror of
https://github.com/soywod/himalaya.git
synced 2024-11-24 20:10:23 +00:00
fix tests
This commit is contained in:
parent
8f667def0c
commit
3c5379b24d
1 changed files with 7 additions and 4 deletions
|
@ -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> {
|
||||||
|
|
Loading…
Reference in a new issue