(
strict: bool,
)
| 1071 | } |
| 1072 | |
| 1073 | fn test_objects( |
| 1074 | strict: bool, |
| 1075 | ) -> ( |
| 1076 | TBinaryInputProtocol<ReadHalf<TBufferChannel>>, |
| 1077 | TBinaryOutputProtocol<WriteHalf<TBufferChannel>>, |
| 1078 | ) { |
| 1079 | let mem = TBufferChannel::with_capacity(200, 200); |
| 1080 | |
| 1081 | let (r_mem, w_mem) = mem.split().unwrap(); |
| 1082 | |
| 1083 | let i_prot = TBinaryInputProtocol::new(r_mem, strict); |
| 1084 | let o_prot = TBinaryOutputProtocol::new(w_mem, strict); |
| 1085 | |
| 1086 | (i_prot, o_prot) |
| 1087 | } |
| 1088 | |
| 1089 | fn assert_no_write<F>(mut write_fn: F, strict: bool) |
| 1090 | where |
no test coverage detected