(req: ExecuteRequest)
| 142 | use super::*; |
| 143 | |
| 144 | fn roundtrip_req(req: ExecuteRequest) -> ExecuteRequest { |
| 145 | let rpc = RaftRpc::ExecuteRequest(req); |
| 146 | let encoded = super::super::encode(&rpc).unwrap(); |
| 147 | match super::super::decode(&encoded).unwrap() { |
| 148 | RaftRpc::ExecuteRequest(r) => r, |
| 149 | other => panic!("expected ExecuteRequest, got {other:?}"), |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | fn roundtrip_resp(resp: ExecuteResponse) -> ExecuteResponse { |
| 154 | let rpc = RaftRpc::ExecuteResponse(resp); |