MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_io_error_conversion

Function test_io_error_conversion

atomic-core/src/change/format_v3/error.rs:454–459  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

452
453 #[test]
454 fn test_io_error_conversion() {
455 let io_err = std::io::Error::new(std::io::ErrorKind::NotFound, "file not found");
456 let format_err: FormatError = io_err.into();
457 assert!(format_err.is_io());
458 assert!(!format_err.is_serialization());
459 }
460
461 #[test]
462 fn test_invalid_section_type_error() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected