MCPcopy Create free account
hub / github.com/3Hren/msgpack-rust / test

Function test

src/encode/value_ref.rs:153–157  ·  view source on GitHub ↗
(err: E)

Source from the content-addressed store, hash-verified

151 let err = Error(WriteError(io::Error::new(io::ErrorKind::Other, "unexpected EOF")));
152
153 fn test<E: error::Error>(err: E) {
154 assert_eq!("error while writing MessagePack'ed value", err.description());
155 assert!(err.cause().is_some());
156 assert_eq!("unexpected EOF", err.cause().unwrap().description());
157 }
158
159 test(err);
160 }

Callers 1

error_traitFunction · 0.85

Calls

no outgoing calls

Tested by 1

error_traitFunction · 0.68