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

Function test_decode_too_short

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

Source from the content-addressed store, hash-verified

736
737 #[test]
738 fn test_decode_too_short() {
739 // Just magic, no payload
740 let err = SessionEnvelope::decode(b"ATSE").unwrap_err();
741 let SessionEnvelopeError { reason } = err;
742 assert!(reason.contains("too short"));
743 }
744
745 #[test]
746 fn test_decode_empty() {

Callers

nothing calls this directly

Calls 1

decodeFunction · 0.50

Tested by

no test coverage detected