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

Function test_decode_empty

atomic-agent/src/envelope.rs:731–739  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

729
730 #[test]
731 fn test_decode_empty() {
732 let err = SessionEnvelope::decode(b"").unwrap_err();
733 match err {
734 AgentError::EnvelopeCodecError { reason } => {
735 assert!(reason.contains("too short"));
736 }
737 other => panic!("Expected EnvelopeCodecError, got: {:?}", other),
738 }
739 }
740
741 #[test]
742 fn test_decode_three_bytes() {

Callers

nothing calls this directly

Calls 1

decodeFunction · 0.85

Tested by

no test coverage detected