Complete code coverage
All checks were successful
Cargo CI / Build and Test (pull_request) Successful in 1m4s
Cargo CI / Lint (pull_request) Successful in 42s

This commit is contained in:
Wojciech Kozlowski 2024-02-10 19:14:49 +01:00
parent a211d120d1
commit bba2d8e3d7

View File

@ -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());
}
}