This commit is contained in:
weisd
2025-06-16 11:40:15 +08:00
parent 52342f2f8e
commit ca298b460c
2 changed files with 11 additions and 2 deletions
+3
View File
@@ -427,6 +427,9 @@ mod tests {
let filemeta_error: Error = io_error.into();
match filemeta_error {
Error::Unexpected => {
assert_eq!(kind, ErrorKind::UnexpectedEof);
}
Error::Io(extracted_io_error) => {
assert_eq!(extracted_io_error.kind(), kind);
assert!(extracted_io_error.to_string().contains("test error"));