(rpc_type: u8)
| 149 | use crate::rpc_codec::header::{HEADER_SIZE, write_frame}; |
| 150 | |
| 151 | fn sample_inner(rpc_type: u8) -> Vec<u8> { |
| 152 | let mut out = Vec::new(); |
| 153 | write_frame(rpc_type, b"payload bytes", &mut out).unwrap(); |
| 154 | out |
| 155 | } |
| 156 | |
| 157 | #[test] |
| 158 | fn envelope_roundtrips() { |