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

Function must_write_strict_message_call_begin

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

Source from the content-addressed store, hash-verified

600
601 #[test]
602 fn must_write_strict_message_call_begin() {
603 let (_, mut o_prot) = test_objects(true);
604
605 let ident = TMessageIdentifier::new("test", TMessageType::Call, 1);
606 assert!(o_prot.write_message_begin(&ident).is_ok());
607
608 #[rustfmt::skip]
609 let expected: [u8; 16] = [
610 0x80,
611 0x01,
612 0x00,
613 0x01,
614 0x00,
615 0x00,
616 0x00,
617 0x04,
618 0x74,
619 0x65,
620 0x73,
621 0x74,
622 0x00,
623 0x00,
624 0x00,
625 0x01,
626 ];
627
628 assert_eq_written_bytes!(o_prot, expected);
629 }
630
631 #[test]
632 fn must_write_non_strict_message_call_begin() {

Callers

nothing calls this directly

Calls 1

test_objectsFunction · 0.70

Tested by

no test coverage detected