Complete code coverage
This commit is contained in:
parent
a211d120d1
commit
bba2d8e3d7
@ -57,3 +57,17 @@ impl From<collection::Error> for LoadError {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn errors() {
|
||||
let col_err: LoadError = collection::Error::UrlError(String::from("get rekt")).into();
|
||||
|
||||
assert!(!col_err.to_string().is_empty());
|
||||
|
||||
assert!(!format!("{:?}", col_err).is_empty());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user