MCPcopy Create free account
hub / github.com/apache/thrift / test_objects

Function test_objects

lib/rs/src/protocol/binary.rs:1073–1087  ·  view source on GitHub ↗
(
        strict: bool,
    )

Source from the content-addressed store, hash-verified

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

Calls 2

unwrapMethod · 0.65
splitMethod · 0.45

Tested by

no test coverage detected