]> Kevux Git Server - fll/commit
Progress: Add dynamic, dynamics, and map unit tests for fl_fss_payload_header_map...
authorKevin Day <kevin@kevux.org>
Wed, 6 Mar 2024 03:57:35 +0000 (21:57 -0600)
committerKevin Day <kevin@kevux.org>
Wed, 6 Mar 2024 04:10:49 +0000 (22:10 -0600)
commitb2e69c1f0ad28593f550f557928802bcafe78b58
treebc2bcdc3dda56ac3c7ec8a9e6a172a2eb6651914
parent891a1576b5e162176af61e7527ca3dcb50c7608b
Progress: Add dynamic, dynamics, and map unit tests for fl_fss_payload_header_map() and fix several problems.

Switch character width loops with memcpy().

Add cases where trailing string should be removed.

Make sure private_fl_fss_basic_write() is only called when the cache is not empty.
Make sue the internal.range is properly set when calling private_fl_fss_basic_write().

Ensure that when any quote is used that they get quoted where appropriate.

Ensure that when key has used of 0, the start range is greater than the stop range to designate a NULL range.

Add dynamic, dynamics, and map unit tests.

Make the tests test the string first rather than the used so that when there is an error it is easier to debug.

Remove unused/stale commented out code.

Switch fss_write flag from 16-bit into 32-bit.
This is necessary because more bits than 16 are in use.
49 files changed:
level_1/fl_fss/c/fss/basic_list.c
level_1/fl_fss/c/fss/embedded_list.c
level_1/fl_fss/c/fss/extended_list.c
level_1/fl_fss/c/fss/payload.c
level_1/fl_fss/c/fss/private-payload.c
level_1/fl_fss/c/private-fss.c
level_1/fl_fss/data/build/settings-tests
level_1/fl_fss/data/tests/headers/payload-join-abstruse_dynamic-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_dynamic-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_dynamic-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_dynamics-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_dynamics-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_dynamics-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_map-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_map-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_map-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_map-3.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_map-4.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_map-5.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_map-6.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_dynamics-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_dynamics-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_dynamics-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_map-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_map-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_map-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_map-3.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_map-4.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_map-5.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_map-6.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/variables/payload-abstruse_dynamic.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/variables/payload-abstruse_dynamics.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/variables/payload-abstruse_map.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_dynamic-join.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_dynamic-join.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_dynamics-join.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_dynamics-join.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_dynamics-split.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_dynamics-split.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_map-join.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_map-join.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_map-split.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_map-split.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_strings-join.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_strings-split.c
level_1/fl_fss/tests/unit/c/test-fss.c
level_1/fl_fss/tests/unit/c/test-fss.h
level_3/fss_write/c/main/common/type.h