QUIC Protocol Implementation 1.0
A Python implementation of the QUIC (Quick UDP Internet Connections) protocol.
|
Public Member Functions | |
setUp (self) | |
test_init (self) | |
test_add_frame (self) | |
test_pack_empty (self) | |
test_pack_with_frames (self) | |
test_unpack (self) | |
test_get_frames_from_payload_bytes (self) | |
test_large_values (self) | |
Public Attributes | |
destination_connection_id | |
packet_number | |
packet | |
test_frames | |
@brief Test cases for the Packet class.
Definition at line 102 of file test_packet.py.
test_packet.TestPacket.setUp | ( | self | ) |
Definition at line 107 of file test_packet.py.
test_packet.TestPacket.test_add_frame | ( | self | ) |
Test adding a frame to the packet
Definition at line 136 of file test_packet.py.
References test_packet.TestPacket.packet, and test_packet.TestPacket.test_frames.
test_packet.TestPacket.test_get_frames_from_payload_bytes | ( | self | ) |
Test extracting frames from payload bytes
Definition at line 187 of file test_packet.py.
References test_packet.TestPacket.test_frames.
test_packet.TestPacket.test_init | ( | self | ) |
Test initialization
Definition at line 130 of file test_packet.py.
References packet.Packet.destination_connection_id, test_packet.TestPacket.destination_connection_id, test_packet.TestPacket.packet, packet.Packet.packet_number, and test_packet.TestPacket.packet_number.
test_packet.TestPacket.test_large_values | ( | self | ) |
Test with large values for destination_connection_id and packet_number
Definition at line 203 of file test_packet.py.
test_packet.TestPacket.test_pack_empty | ( | self | ) |
Test packing an empty packet
Definition at line 146 of file test_packet.py.
References test_packet.TestPacket.packet.
test_packet.TestPacket.test_pack_with_frames | ( | self | ) |
Test packing a packet with frames
Definition at line 154 of file test_packet.py.
References test_packet.TestPacket.packet, and test_packet.TestPacket.test_frames.
test_packet.TestPacket.test_unpack | ( | self | ) |
Test unpacking a packet
Definition at line 169 of file test_packet.py.
References test_packet.TestPacket.packet, and test_packet.TestPacket.test_frames.
test_packet.TestPacket.destination_connection_id |
Definition at line 108 of file test_packet.py.
Referenced by packet.Packet.pack(), and test_packet.TestPacket.test_init().
test_packet.TestPacket.packet |
Definition at line 110 of file test_packet.py.
Referenced by test_packet.TestPacket.test_add_frame(), test_packet.TestPacket.test_init(), test_packet.TestPacket.test_pack_empty(), test_packet.TestPacket.test_pack_with_frames(), and test_packet.TestPacket.test_unpack().
test_packet.TestPacket.packet_number |
Definition at line 109 of file test_packet.py.
Referenced by packet.Packet.pack(), and test_packet.TestPacket.test_init().
test_packet.TestPacket.test_frames |
Definition at line 113 of file test_packet.py.
Referenced by test_packet.TestPacket.test_add_frame(), test_packet.TestPacket.test_get_frames_from_payload_bytes(), test_packet.TestPacket.test_pack_with_frames(), and test_packet.TestPacket.test_unpack().