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

Function test_decode_empty

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

Source from the content-addressed store, hash-verified

744
745 #[test]
746 fn test_decode_empty() {
747 let err = SessionEnvelope::decode(b"").unwrap_err();
748 let SessionEnvelopeError { reason } = err;
749 assert!(reason.contains("too short"));
750 }
751
752 #[test]
753 fn test_decode_three_bytes() {

Callers

nothing calls this directly

Calls 1

decodeFunction · 0.50

Tested by

no test coverage detected