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

Function must_write_list_begin

lib/rs/src/protocol/binary.rs:823–832  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

821
822 #[test]
823 fn must_write_list_begin() {
824 let (_, mut o_prot) = test_objects(true);
825
826 assert!(o_prot
827 .write_list_begin(&TListIdentifier::new(TType::Bool, 5))
828 .is_ok());
829
830 let expected: [u8; 5] = [0x02, 0x00, 0x00, 0x00, 0x05];
831 assert_eq_written_bytes!(o_prot, expected);
832 }
833
834 #[test]
835 fn must_round_trip_list_begin() {

Callers

nothing calls this directly

Calls 1

test_objectsFunction · 0.70

Tested by

no test coverage detected