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

Function test_is_serialization

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

Source from the content-addressed store, hash-verified

512
513 #[test]
514 fn test_is_serialization() {
515 // Only postcard errors are serialization errors
516 let err = FormatError::Compress("x".into());
517 assert!(!err.is_serialization());
518
519 let io_err: FormatError = std::io::Error::other("x").into();
520 assert!(!io_err.is_serialization());
521 }
522
523 #[test]
524 fn test_is_compression() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected