CCSDS 124.0-B-1 C Test Report
Bit Buffer
test_bitbuffer_init
test_bitbuffer_clear
test_bitbuffer_size
test_bitbuffer_append_bit
test_bitbuffer_append_bits
test_bitbuffer_append_bits_partial_byte
test_bitbuffer_append_bitvector
test_bitbuffer_append_multiple
test_bitbuffer_to_bytes_full_byte
test_bitbuffer_to_bytes_partial_byte
test_bitbuffer_to_bytes_truncate
test_bitbuffer_overflow_protection
test_bitbuffer_append_bits_overflow
test_bitbuffer_append_bitvector_partial
14/14 tests passed
Bit Vector
test_bitvector_init_valid
test_bitvector_init_non_byte_aligned
test_bitvector_init_max_size
test_bitvector_init_too_large
test_bitvector_init_zero
test_bitvector_zero
test_bitvector_get_set_bit
test_bitvector_copy
test_bitvector_xor
test_bitvector_or
test_bitvector_and
test_bitvector_not
test_bitvector_left_shift
test_bitvector_reverse
test_bitvector_hamming_weight
test_bitvector_equals
test_bitvector_from_bytes
test_bitvector_to_bytes
test_bitvector_copy_different_sizes
test_bitvector_xor_different_sizes
test_bitvector_or_different_sizes
test_bitvector_hamming_weight_non_aligned
test_bitvector_hamming_weight_36_bits
test_bitvector_from_bytes_overflow
test_bitvector_to_bytes_underflow
test_bitvector_to_bytes_full_word
test_bitvector_copy_b_smaller
test_bitvector_xor_b_smaller
test_bitvector_or_b_smaller
test_bitvector_and_b_smaller
test_bitvector_not_16bits
test_bitvector_not_non_byte_aligned
test_bitvector_reverse_16bits
test_bitvector_hamming_weight_excess_bits
34/34 tests passed
Compression
test_compressor_init_valid
test_compressor_init_with_initial_mask
test_compressor_init_invalid_length
test_compressor_init_invalid_robustness
test_compressor_reset
test_compress_first_packet
test_compress_d0_zero_with_nonzero_mask
test_compress_two_identical_packets
test_compress_with_change
test_compress_null_params
test_compress_invalid_input
test_compute_robustness_window_rt_zero
test_compute_robustness_window_with_history
test_compute_effective_robustness_base_case
test_compute_effective_robustness_with_no_changes
test_has_positive_updates_all_unpredictable
test_has_positive_updates_has_predictable
test_compute_ct_flag_single_update
test_compute_ct_flag_multiple_updates
test_ccsds124_compress_invalid_size
test_ccsds124_compress_manual_mode
test_robustness_window_rt_zero
test_robustness_window_with_history
test_effective_robustness_no_changes
test_compression_with_robustness
25/25 tests passed
Decompression
test_bitreader_init: position is 0
test_bitreader_init: 32 bits remaining
test_bitreader_read_bit: bit 0 is 1
test_bitreader_read_bit: bit 1 is 0
test_bitreader_read_bit: bit 2 is 1
test_bitreader_read_bit: bit 3 is 0
test_bitreader_read_bit: position is 4
test_bitreader_read_bits: first 4 bits = 10
test_bitreader_read_bits: next 8 bits = 188
test_bitreader_align_byte: position is 3 after reading 3 bits
test_bitreader_align_byte: position is 8 after align
test_bitreader_align_byte: position unchanged when already aligned
test_count_decode_1: returns OK
test_count_decode_1: value is 1
test_count_decode_1: consumed 1 bit
test_count_decode_terminator: returns OK
test_count_decode_terminator: value is 0
test_count_decode_terminator: consumed 2 bits
test_count_decode_2: returns OK
test_count_decode_2: value is 2
test_count_decode_2: consumed 8 bits
test_count_decode_33: returns OK
test_count_decode_33: value is 33
test_count_decode_34: returns OK
test_count_decode_34: value is 34
test_count_roundtrip: all values round-trip correctly
test_rle_decode_all_zeros: returns OK
test_rle_decode_all_zeros: all bits zero
test_rle_roundtrip: all patterns round-trip correctly
test_decompress_uncompressed_packet: returns OK
test_decompress_uncompressed_packet: data matches
test_decompress_roundtrip_multiple: returns OK
test_decompress_roundtrip_multiple: correct size
test_decompress_roundtrip_multiple: data matches
test_count_decode_null_args: NULL reader fails
test_count_decode_null_args: NULL value fails
test_count_decode_empty_reader: empty reader fails
test_rle_decode_null_args: NULL reader fails
test_rle_decode_null_args: NULL result fails
test_bit_insert_null_args: NULL reader fails
test_bit_insert_null_args: NULL data fails
test_bit_insert_null_args: NULL mask fails
test_bit_insert_length_mismatch: mismatched lengths fails
test_decompressor_init_null: NULL decomp fails
test_decompress_packet_null_args: NULL decomp fails
test_decompress_packet_null_args: NULL reader fails
test_decompress_packet_null_args: NULL output fails
test_decompress_null_args: NULL decomp fails
test_decompress_null_args: NULL input fails
test_decompress_null_args: NULL output fails
test_decompress_null_args: NULL output_size fails
test_decompress_output_overflow: small buffer fails
test_decompressor_init_invalid_length: F=0 fails
test_decompressor_init_invalid_length: F>max fails
test_decompressor_init_invalid_robustness: R=8 fails
test_decompressor_init_with_mask: returns OK
test_decompressor_init_with_mask: mask copied
57/57 tests passed
Checked Decompression
71/71 tests passed
32/32 tests passed
Encoding Functions
test_count_encode_1
test_count_encode_2
test_count_encode_3
test_count_encode_4
test_count_encode_33
test_count_encode_34
test_count_encode_example_from_spec
test_rle_encode_simple
test_rle_encode_all_zeros
test_rle_encode_example_from_algorithm
test_bit_extract_simple
test_bit_extract_no_mask
test_bit_extract_all_mask
test_bit_extract_length_mismatch
test_bit_extract_forward_length_mismatch
test_bit_extract_forward_no_mask
16/16 tests passed
Malformed Input
46/46 tests passed
Mask Update Logic
test_update_build_at_t0
test_update_build_with_new_mask_flag
test_update_build_normal_case
test_update_build_no_change
test_update_mask_normal_case
test_update_mask_with_new_mask_flag
test_update_mask_no_change
test_compute_change_at_t0
test_compute_change_normal_case
test_compute_change_no_mask_change
test_compute_change_all_bits_flip
test_mask_update_sequence
12/12 tests passed
CCSDS 124.0-B-1 Robustness Validation
9/9 tests passed
Results: 9/9 tests passed
Robustness Parameter
30/30 tests passed
Reference Test Vectors
test_vector_simple
test_vector_housekeeping
test_vector_edge_cases
test_vector_hiro
test_vector_venus_express
5/5 tests passed
Total: 351/351 tests passed
Generated on 2026-06-29 15:02:00 UTC