()
| 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() { |