QUIC Protocol Implementation 1.0
A Python implementation of the QUIC (Quick UDP Internet Connections) protocol.
Loading...
Searching...
No Matches
test_packet.TestPacket Class Reference
Inheritance diagram for test_packet.TestPacket:
Collaboration diagram for test_packet.TestPacket:

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
 

Detailed Description

@brief Test cases for the Packet class.

Definition at line 102 of file test_packet.py.

Member Function Documentation

◆ setUp()

test_packet.TestPacket.setUp (   self)

Definition at line 107 of file test_packet.py.

◆ test_add_frame()

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_get_frames_from_payload_bytes()

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_init()

◆ test_large_values()

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_pack_empty()

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_pack_with_frames()

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_unpack()

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.

Member Data Documentation

◆ destination_connection_id

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().

◆ packet

◆ packet_number

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_frames


The documentation for this class was generated from the following file: