crash.software
Projects
Pull Requests
Issues
Builds
CatSniffer
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
CatSniffer
Files
🤬
Sign In
610f4755
ROOT
/
firmware
/
ot-cc13x2-cc26x2
/
openthread
/
tests
/
scripts
/
thread-cert
/
test_lowpan.py
Search
History
3668 lines
|
ISO-8859-1
|
117 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
io
random
struct
unittest
common
config
ipv6
lowpan
create_default_lowpan_parser
(context_manager)
any_tf
()
any_nh
()
any_hlim
()
any_cid
()
any_sac
()
any_sam
()
any_m
()
any_dac
()
any_dam
()
any_ecn
()
any_dscp
()
any_flow_label
()
any_hop_limit
()
any_src_addr
()
any_dst_addr
()
any_eui64
()
any_rloc16
()
any_48bits_addr
()
any_32bits_addr
()
any_8bits_addr
()
any_c
()
any_p
()
any_src_port
()
any_dst_port
()
any_compressable_src_port
()
any_compressable_dst_port
()
any_nibble_src_port
()
any_nibble_dst_port
()
any_checksum
()
any_next_header
()
any_sci
()
any_dci
()
any_src_mac_addr
()
any_dst_mac_addr
()
any_context
()
any_mac_address
()
any_hops_left
()
any_data
(length=None)
any_datagram_size
()
any_datagram_tag
()
any_datagram_offset
()
TestLowpanIPHC
(unittest.TestCase)
test_should_create_LowpanIPHC_object_when_from_bytes_classmethod_called
(self)
TestLowpanParser
(unittest.TestCase)
test_should_parse_6lo_with_mesh_hdr_that_contains_hlim_stored_on_2_bytes_when_decompress_method_called
(self)
test_should_parse_6lo_with_uncompressed_udp_and_without_hbh_when_decompress_method_called
(self)
test_should_parse_6lo_with_compressed_udp_and_without_hbh_when_decompress_method_called
(self)
test_should_parse_6lo_with_uncompressed_udp_and_with_uncompressed_hbh_when_decompress_method_called
(self)
test_should_parse_6lo_with_uncompressed_udp_and_with_compressed_hbh_when_decompress_method_called
(self)
test_should_parse_6lo_with_compressed_udp_and_with_compressed_hbh_when_decompress_method_called
(self)
test_should_parse_6lo_with_compressed_icmp_and_without_compressed_hbh_when_decompress_method_called
(self)
test_should_parse_6lo_with_compressed_icmp_and_without_compressed_hbh_when_decompress_method_called_1
(self)
test_should_parse_6lo_with_compressed_icmp_and_without_compressed_hbh_when_decompress_method_called_2
(self)
test_should_parse_6lo_with_compressed_icmp_and_without_compressed_hbh_when_decompress_method_called_3
(self)
test_should_parse_6lo_with_compressed_icmp_and_without_compressed_hbh_when_decompress_method_called_4
(self)
test_should_parse_6lo_with_compressed_icmp_and_without_compressed_hbh_when_decompress_method_called_5
(self)
test_should_parse_6lo_with_compressed_icmp_and_without_compressed_hbh_when_decompress_method_called_6
(self)
test_should_parse_6lo_with_compressed_icmp_and_without_compressed_hbh_when_decompress_method_called_7
(self)
test_should_parse_6lo_with_compressed_icmp_and_without_compressed_hbh_when_decompress_method_called_8
(self)
test_should_parse_6lo_with_compressed_icmp_and_without_compressed_hbh_when_decompress_method_called_9
(self)
test_should_defragment_big_IPv6_packet_when_parse_method_called_with_fragments_in_random_order
(self)
test_should_defragment_IPv6_packet_when_parse_method_called_with_fragments
(self)
TestLowpanUdpHeaderFactory
(unittest.TestCase)
test_should_parse_udp_datagram_ports_when_decompress_udp_ports_method_called_with_udphc_p_eq_0
(self)
test_should_parse_udp_datagram_ports_when_decompress_udp_ports_method_called_with_udphc_p_eq_1
(self)
test_should_parse_udp_datagram_ports_when_decompress_udp_ports_method_called_with_udphc_p_eq_2
(self)
test_should_parse_udp_datagram_ports_when_decompress_udp_ports_method_called_with_udphc_p_eq_3
(self)
test_should_parse_udp_datagram_checksum_when_decompress_udp_checksum_called_with_udphc_c_eq_0
(self)
test_should_parse_udp_datagram_checksum_when_decompress_udp_checksum_called_with_udphc_c_eq_1
(self)
TestLowpanIpv6HeaderFactory
(unittest.TestCase)
IPV6_LINKLOCAL_PREFIX
test_should_parse_traffic_class_and_flow_label_when_decompress_tf_method_called_with_iphc_tf_eq_0
(self)
test_should_parse_traffic_class_and_flow_label_when_decompress_tf_method_called_with_iphc_tf_eq_1
(self)
test_should_parse_traffic_class_and_flow_label_when_decompress_tf_method_called_with_iphc_tf_eq_2
(self)
test_should_parse_traffic_class_and_flow_label_when_decompress_tf_method_called_with_iphc_tf_eq_3
(self)
test_should_parse_traffic_class_and_flow_label_when_decompress_nh_method_called_with_iphc_nh_eq_0
(self)
test_should_parse_traffic_class_and_flow_label_when_decompress_nh_method_called_with_iphc_nh_eq_1
(self)
test_should_parse_hop_limit_when_decompress_hlim_called_with_iphc_hlim_eq_0
(self)
test_should_parse_hop_limit_when_decompress_hlim_called_with_iphc_hlim_eq_1
(self)
test_should_parse_hop_limit_when_decompress_hlim_called_with_iphc_hlim_eq_2
(self)
test_should_parse_hop_limit_when_decompress_hlim_called_with_iphc_hlim_eq_3
(self)
test_should_parse_source_address_when_decompress_src_addr_called_with_sac_eq_0_and_sam_eq_0
(self)
test_should_parse_source_address_when_decompress_src_addr_called_with_sac_eq_0_and_sam_eq_1
(self)
test_should_parse_source_address_when_decompress_src_addr_called_with_sac_eq_0_and_sam_eq_2
(self)
test_should_parse_source_address_when_decompress_src_addr_called_with_sac_eq_0_and_sam_eq_3
(self)
_merge_prefix_and_address
(self,prefix,prefix_length,address)
test_should_parse_source_address_when_decompress_src_addr_called_with_sac_eq_1_and_sam_eq_0
(self)
test_should_parse_source_address_when_decompress_src_addr_called_with_sac_eq_1_and_sam_eq_1
(self)
test_should_parse_source_address_when_decompress_src_addr_called_with_sac_eq_1_and_sam_eq_2
(self)
test_should_parse_source_address_when_decompress_src_addr_called_with_sac_eq_1_and_sam_eq_3
(self)
test_should_parse_dst_addr_when_decompress_dst_addr_called_with_m_eq_0_and_dac_eq_0_and_dam_eq_0
(self)
test_should_parse_dst_addr_when_decompress_dst_addr_called_with_m_eq_0_and_dac_eq_0_and_dam_eq_1
(self)
test_should_parse_dst_addr_when_decompress_dst_addr_called_with_m_eq_0_and_dac_eq_0_and_dam_eq_2
(self)
test_should_parse_dst_addr_when_decompress_dst_addr_called_with_m_eq_0_and_dac_eq_0_and_dam_eq_3
(self)
test_should_raise_RuntimeError_when_decompress_dst_addr_called_with_m_eq_0_and_dac_eq_1_and_dam_eq_0
(self)
test_should_parse_dst_addr_when_decompress_dst_addr_called_with_m_eq_0_and_dac_eq_1_and_dam_eq_1
(self)
test_should_parse_dst_addr_when_decompress_dst_addr_called_with_m_eq_0_and_dac_eq_1_and_dam_eq_2
(self)
test_should_parse_dst_addr_when_decompress_dst_addr_called_with_m_eq_0_and_dac_eq_1_and_dam_eq_3
(self)
test_should_parse_dst_addr_when_decompress_dst_addr_called_with_m_eq_1_and_dac_eq_0_and_dam_eq_0
(self)
test_should_parse_dst_addr_when_decompress_dst_addr_called_with_m_eq_1_and_dac_eq_0_and_dam_eq_1
(self)
test_should_parse_dst_addr_when_decompress_dst_addr_called_with_m_eq_1_and_dac_eq_0_and_dam_eq_2
(self)
test_should_parse_dst_addr_when_decompress_dst_addr_called_with_m_eq_1_and_dac_eq_0_and_dam_eq_3
(self)
test_should_raise_RuntimeError_when_decompress_dst_addr_called_with_m_eq_1_and_dac_eq_1_and_dam_eq_0
(self)
test_should_raise_RuntimeError_when_decompress_dst_addr_called_with_m_eq_1_and_dac_eq_1_and_dam_eq_1
(self)
test_should_raise_RuntimeError_when_decompress_dst_addr_called_with_m_eq_1_and_dac_eq_1_and_dam_eq_2
(self)
test_should_parse_dst_addr_when_decompress_dst_addr_called_with_m_eq_1_and_dac_eq_1_and_dam_eq_3
(self)
test_should_merge_pfx_with_addr_bytes_when_merge_method_called_with_pfx_shorter_than_missing_bits
(self)
test_should_merge_pfx_with_addr_bytes_when_merge_method_called_with_pfx_longer_than_missing_bits_overlap
(self)
test_should_merge_pfx_with_address_bytes_when_merge_method_called_with_pfx_longer_than_missing_bits
(self)
TestContext
(unittest.TestCase)
test_should_extract_context_from_str_representation_when_constructor_called
(self)
test_should_extract_context_from_bytearray_when_construct_called
(self)
TestContextManager
(unittest.TestCase)
test_should_raise_IndexError_when_index_is_larger_than_15
(self)
test_should_raise_IndexError_when_index_is_smaller_than_0
(self)
test_should_raise_TypeError_when_set_value_is_not_Context
(self)
TestLowpanMeshHeader
(unittest.TestCase)
test_should_return_hops_left_value_when_hops_left_property_called
(self)
test_should_return_originator_address_value_when_originator_address_property_called
(self)
test_should_return_final_destination_address_value_when_final_destination_address_property_called
(self)
TestLowpanMeshHeaderFactory
(unittest.TestCase)
test_should_create_LowpanMeshHeader_when_parse_method_called
(self)
TestLowpanFragmentationHeader
(unittest.TestCase)
test_should_return_datagram_size_value_when_datagram_size_property_called
(self)
test_should_return_datagram_tag_value_when_datagram_tag_property_called
(self)
test_should_return_datagram_offset_value_when_datagram_offset_property_called
(self)
test_should_return_False_when_is_first_property_called_and_datagram_offset_is_not_eq_0
(self)
test_should_to_bytes_LowpanFragmentationHeader_from_bytes_when_from_bytes_class_method_called
(self)
TestLowpanDecompressor
(unittest.TestCase)
test_should_parse_parent_request_when_decompress_method_called
(self)
test_should_parse_parent_response_when_decompress_method_called
(self)
test_should_parse_child_id_request_when_decompress_method_called
(self)
test_should_parse_child_id_response_when_decompress_method_called
(self)
test_should_parse_advertisement_when_decompress_method_called
(self)
TestLowpanFragmentsBuffer
(unittest.TestCase)
test_should_raise_ValueError_when_write_method_called_with_data_length_bigger_than_buffer_length
(self)
test_should_move_write_position_by_the_data_length_when_write_method_called
(self)
test_should_raise_ValueError_when_read_method_called_but_not_whole_packet_has_been_stored_in_buffer
(self)
test_should_raise_ValueError_when_seek_method_called_with_offset_bigger_than_buffer_length
(self)
test_should_set_write_position_when_seek_method_called
(self)
test_should_write_whole_packet_to_buffer_when_write_method_called
(self)
test_should_write_many_frags_to_the_buffer_and_return_whole_message_when_write_method_called_many_times
(self)
TestLowpanFragmentsBuffersManager
(unittest.TestCase)
test_should_raise_ValueError_when_get_fragments_buffer_method_called_with_invalid_dgram_size
(self)
test_should_return_LowpanFragmentsBuffer_when_get_fragments_buffer_method_called_with_valid_dgram_size
(self)
All occurrences
Please wait...
Page is in error, reload to recover