()
| 657 | |
| 658 | #[test] |
| 659 | fn must_write_strict_message_reply_begin() { |
| 660 | let (_, mut o_prot) = test_objects(true); |
| 661 | |
| 662 | let ident = TMessageIdentifier::new("test", TMessageType::Reply, 10); |
| 663 | assert!(o_prot.write_message_begin(&ident).is_ok()); |
| 664 | |
| 665 | #[rustfmt::skip] |
| 666 | let expected: [u8; 16] = [ |
| 667 | 0x80, |
| 668 | 0x01, |
| 669 | 0x00, |
| 670 | 0x02, |
| 671 | 0x00, |
| 672 | 0x00, |
| 673 | 0x00, |
| 674 | 0x04, |
| 675 | 0x74, |
| 676 | 0x65, |
| 677 | 0x73, |
| 678 | 0x74, |
| 679 | 0x00, |
| 680 | 0x00, |
| 681 | 0x00, |
| 682 | 0x0A, |
| 683 | ]; |
| 684 | |
| 685 | assert_eq_written_bytes!(o_prot, expected); |
| 686 | } |
| 687 | |
| 688 | #[test] |
| 689 | fn must_write_non_strict_message_reply_begin() { |
nothing calls this directly
no test coverage detected