]> Kevux Git Server - fll/commit
Update: Wrap up unit tests for fl_fss_payload_header_map() and fix observed problems.
authorKevin Day <kevin@kevux.org>
Mon, 11 Mar 2024 00:00:41 +0000 (19:00 -0500)
committerKevin Day <kevin@kevux.org>
Mon, 11 Mar 2024 00:04:48 +0000 (19:04 -0500)
commit74005e58543df1a3244a3c3a1d29512e2d32d3bd
tree929104635a85fa77a851d680a87bd2986fe6a95a
parent08858a71da7be738ba9ebacb35308310312387ed
Update: Wrap up unit tests for fl_fss_payload_header_map() and fix observed problems.

The unit tests for fl_fss_payload_header_map() are lacking significant combinations and permutations.
This, however, is being considered good enough for a first pass.
More complex and broader cases will hopefully be handled in some likely relatively distant future.

The null_quantity flag does not make any sense as the variable "total" can be 0 and that should not logically be considered NULL.
Make sure strings are NULL terminated for the cases where the code adds an extra space and then unassigned the used length of that space.
Handle cases where range.start > range.stop, aka NULL range.
Various other fixes.
94 files changed:
level_0/f_abstruse/c/abstruse/private-abstruse.c
level_0/f_fss/c/fss/payload.h
level_1/fl_fss/c/fss/payload.c
level_1/fl_fss/c/fss/private-payload.c
level_1/fl_fss/data/build/settings-tests
level_1/fl_fss/data/tests/headers/payload-join-abstruse_quantity-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_quantity-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_quantity-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_quantitys-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_quantitys-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_quantitys-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_range-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_range-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_range-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_range-3.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_ranges-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_ranges-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_ranges-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_ranges-3.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_triple-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_triple-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_triple-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_triple-3.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_triple-4.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_triple-5.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_triple-6.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_triples-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_triples-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_triples-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_triples-3.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_triples-4.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_triples-5.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_triples-6.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_quantity-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_quantity-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_quantity-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_quantitys-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_quantitys-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_quantitys-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_range-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_range-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_range-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_range-3.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_ranges-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_ranges-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_ranges-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_ranges-3.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_triple-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_triple-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_triple-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_triple-3.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_triple-4.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_triple-5.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_triple-6.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_triples-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_triples-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_triples-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_triples-3.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_triples-4.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_triples-5.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_triples-6.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/variables/payload-abstruse_quantity.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/variables/payload-abstruse_quantitys.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/variables/payload-abstruse_range.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/variables/payload-abstruse_ranges.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/variables/payload-abstruse_triple.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/variables/payload-abstruse_triples.txt [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/help-fss-payload.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_quantity-join.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_quantity-join.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_quantity-split.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_quantity-split.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_quantitys-join.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_quantitys-join.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_quantitys-split.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_quantitys-split.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_range-join.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_range-join.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_range-split.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_range-split.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_ranges-join.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_ranges-join.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_ranges-split.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_ranges-split.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_triple-join.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_triple-join.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_triple-split.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_triple-split.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_triples-join.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_triples-join.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_triples-split.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_triples-split.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss.c
level_1/fl_fss/tests/unit/c/test-fss.h