()
| 168 | |
| 169 | #[test] |
| 170 | fn response_encode_json() { |
| 171 | let resp = NativeResponse::ok(1); |
| 172 | let bytes = encode_response(&resp, FrameFormat::Json).unwrap(); |
| 173 | let s = String::from_utf8(bytes).unwrap(); |
| 174 | assert!(s.contains("\"seq\":1")); |
| 175 | } |
| 176 | |
| 177 | #[test] |
| 178 | fn response_encode_msgpack() { |
nothing calls this directly
no test coverage detected