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