From 35524336bbc45d099ed842d7ed14367c9bd9381b Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sun, 12 Jan 2025 12:13:02 +0100 Subject: [PATCH] Fix coverage --- src/core/interface/database/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/interface/database/mod.rs b/src/core/interface/database/mod.rs index 3f9ab5f..27293d0 100644 --- a/src/core/interface/database/mod.rs +++ b/src/core/interface/database/mod.rs @@ -123,5 +123,9 @@ mod tests { let io_err: SaveError = io::Error::new(io::ErrorKind::Interrupted, "error").into(); assert!(!io_err.to_string().is_empty()); assert!(!format!("{:?}", io_err).is_empty()); + + let sd_err: SaveError = SaveError::SerDeError(String::from("serde")); + assert!(!sd_err.to_string().is_empty()); + assert!(!format!("{:?}", sd_err).is_empty()); } }