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

Public Member Functions

 setUp (self)
 
 test_init_default (self)
 
 test_init_custom (self)
 
 test_pack (self)
 
 test_pack_all_fields (self)
 
 test_unpack (self)
 
 test_unpack_all_fields (self)
 

Public Attributes

 header
 
 header_all_fields
 

Detailed Description

@brief Test cases for the PacketHeader class.

Definition at line 20 of file test_packet.py.

Member Function Documentation

◆ setUp()

test_packet.TestPacketHeader.setUp (   self)

Definition at line 25 of file test_packet.py.

◆ test_init_custom()

test_packet.TestPacketHeader.test_init_custom (   self)
Test initialization with custom values

Definition at line 45 of file test_packet.py.

References test_packet.TestPacketHeader.header_all_fields.

◆ test_init_default()

test_packet.TestPacketHeader.test_init_default (   self)
Test initialization with default values

Definition at line 36 of file test_packet.py.

References test_packet.TestPacketHeader.header.

◆ test_pack()

test_packet.TestPacketHeader.test_pack (   self)
Test packing header to bytes

Definition at line 54 of file test_packet.py.

References test_packet.TestPacketHeader.header.

◆ test_pack_all_fields()

test_packet.TestPacketHeader.test_pack_all_fields (   self)
Test packing header with all fields set

Definition at line 60 of file test_packet.py.

References test_packet.TestPacketHeader.header_all_fields.

◆ test_unpack()

test_packet.TestPacketHeader.test_unpack (   self)
Test unpacking header from bytes

Definition at line 75 of file test_packet.py.

References test_packet.TestPacketHeader.header.

◆ test_unpack_all_fields()

test_packet.TestPacketHeader.test_unpack_all_fields (   self)
Test unpacking header with all fields set

Definition at line 87 of file test_packet.py.

References test_packet.TestPacketHeader.header_all_fields.

Member Data Documentation

◆ header

◆ header_all_fields


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