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

Function test_decode_three_bytes

atomic-core/src/change/envelope.rs:753–757  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

751
752 #[test]
753 fn test_decode_three_bytes() {
754 let err = SessionEnvelope::decode(b"ATS").unwrap_err();
755 let SessionEnvelopeError { reason } = err;
756 assert!(reason.contains("too short"));
757 }
758
759 #[test]
760 fn test_decode_wrong_magic() {

Callers

nothing calls this directly

Calls 1

decodeFunction · 0.50

Tested by

no test coverage detected