]> Kevux Git Server - fll/commitdiff
Progress: Add strings unit tests for fl_fss_payload_header_map().
authorKevin Day <kevin@kevux.org>
Sun, 3 Mar 2024 05:48:34 +0000 (23:48 -0600)
committerKevin Day <kevin@kevux.org>
Sun, 3 Mar 2024 05:48:34 +0000 (23:48 -0600)
62 files changed:
level_1/fl_fss/data/build/settings-tests
level_1/fl_fss/data/tests/headers/payload-join-abstruse_strings-0.txt
level_1/fl_fss/data/tests/headers/payload-join-abstruse_strings-1.txt
level_1/fl_fss/data/tests/headers/payload-join-abstruse_strings-2.txt
level_1/fl_fss/data/tests/headers/payload-split-abstruse_strings-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_strings-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-split-abstruse_strings-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/variables/payload-abstruse_strings.txt
level_1/fl_fss/tests/unit/c/help-fss-payload.c
level_1/fl_fss/tests/unit/c/help-fss-payload.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_int16s-join.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_int16s-join.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_int16s-split.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_int16s-split.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_int32s-join.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_int32s-join.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_int32s-split.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_int32s-split.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_int64s-join.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_int64s-join.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_int64s-split.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_int64s-split.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_int8s-join.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_int8s-join.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_int8s-split.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_int8s-split.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_signed-join.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_signed-join.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_signeds-join.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_signeds-join.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_signeds-split.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_signeds-split.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_string-join.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_string-join.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_strings-join.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_strings-join.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_strings-split.c [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_strings-split.h [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_uint16s-join.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_uint16s-join.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_uint16s-split.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_uint16s-split.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_uint32s-join.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_uint32s-join.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_uint32s-split.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_uint32s-split.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_uint64s-join.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_uint64s-join.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_uint64s-split.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_uint64s-split.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_uint8s-join.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_uint8s-join.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_uint8s-split.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_uint8s-split.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_unsigned-join.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_unsigned-join.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_unsigneds-join.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_unsigneds-join.h
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_unsigneds-split.c
level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_unsigneds-split.h
level_1/fl_fss/tests/unit/c/test-fss.c
level_1/fl_fss/tests/unit/c/test-fss.h

index 8e5330c80aa67aca2297504152865862ede5df11..096964d281cc93ab2059552ab16162e03aa3227c 100644 (file)
@@ -43,6 +43,7 @@ build_sources_program test-fss-payload_header_map-abstruse_signed-join.c test-fs
 build_sources_program test-fss-payload_header_map-abstruse_signeds-join.c test-fss-payload_header_map-abstruse_unsigneds-join.c
 build_sources_program test-fss-payload_header_map-abstruse_signeds-split.c test-fss-payload_header_map-abstruse_unsigneds-split.c
 build_sources_program test-fss-payload_header_map-abstruse_string-join.c
+build_sources_program test-fss-payload_header_map-abstruse_strings-join.c test-fss-payload_header_map-abstruse_strings-split.c
 
 build_sources_program test-fss.c data-fss.c help-fss.c help-fss-payload.c
 
index 7b06942741f761fbd169d11f471b9675978546c7..2547b5e604442ce684d2a27f7d864c697147da2e 100644 (file)
@@ -1,6 +1,3 @@
 a
-4
-0
-hello
-"some thing"
-3全#$⸙
+1
+"0 hello some thing 3全#$⸙ """
index 50e859ff2062e5a8782653cc42973843daca882a..1cee3a37f9020f0e1f6cf6c362397f4c05cc02d5 100644 (file)
@@ -1,5 +1,3 @@
 b
-3
-全
-⸙
-"␀ ␀ ␀ ␀ ␀ ␀"
+1
+"全 ⸙ ␀ ␀ ␀ ␀ ␀ ␀"
diff --git a/level_1/fl_fss/data/tests/headers/payload-split-abstruse_strings-0.txt b/level_1/fl_fss/data/tests/headers/payload-split-abstruse_strings-0.txt
new file mode 100644 (file)
index 0000000..3cdfa1f
--- /dev/null
@@ -0,0 +1,3 @@
+a
+1
+0 hello "some thing" 3全#$⸙ """"
diff --git a/level_1/fl_fss/data/tests/headers/payload-split-abstruse_strings-1.txt b/level_1/fl_fss/data/tests/headers/payload-split-abstruse_strings-1.txt
new file mode 100644 (file)
index 0000000..044ed3e
--- /dev/null
@@ -0,0 +1,3 @@
+b
+1
+全 ⸙ "␀ ␀ ␀ ␀ ␀ ␀"
diff --git a/level_1/fl_fss/data/tests/headers/payload-split-abstruse_strings-2.txt b/level_1/fl_fss/data/tests/headers/payload-split-abstruse_strings-2.txt
new file mode 100644 (file)
index 0000000..64fa96d
--- /dev/null
@@ -0,0 +1,3 @@
+c
+1
+� ""a b \" c"
index d64b7e93542b25972a445435830a836c40701b0f..f4cdddbc4959fc071c2fbaade0e4361084b92ea3 100644 (file)
@@ -1,9 +1,10 @@
 a
-4
+5
 0
 hello
 some thing
 3全#$⸙
+""
 b
 3
 全
index c1ad74538f67473e625856d761c8f0c0ed37f8c0..d99f6755d9df557a7655337a0151d25cee052809 100644 (file)
@@ -4,7 +4,7 @@
 extern "C" {
 #endif
 
-void help_payload__test(const f_string_t context_variables, const f_string_t context_headers, const uint64_t flag, void (*load_contents)(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state)) {
+void help_payload__test(const f_string_t context_variables, const f_string_t context_headers, const uint64_t flag, void (*load_contents)(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra), void * extra) {
 
   // Note: Each line should probably be at max 255 characters.
   //       The payload begins with a digit on the first line representing the number of Content lines following the Object line.
@@ -39,7 +39,7 @@ void help_payload__test(const f_string_t context_variables, const f_string_t con
       state.status = f_memory_array_increase(state.step_small, sizeof(f_abstruse_map_t), (void **) &headers.array, &headers.used, &headers.size);
       assert_true(F_status_is_error_not(state.status));
 
-      load_contents(object, contents, &headers, &state);
+      load_contents(object, contents, &headers, &state, extra);
 
       if (object.string) free(object.string);
 
index d189548ee78a3e697db09afcf97519b59458a158..d64c31f0c67aad0e7de831f5b65603c28a14abb4 100644 (file)
@@ -25,8 +25,13 @@ extern "C" {
  *   The payload header state data flag.
  * @param load_contents
  *   A callback to perform the type-specific content loading translation of the number.
+ * @param extra
+ *   (optional) Additional argument of any type to pass to load_contents().
+ *   This is useful for when needing to free custom memory.
+ *   Use a structure to pass multiple variables.
+ *   Set to NULL to not use.
  */
-void help_payload__test(const f_string_t context_variables, const f_string_t context_headers, const uint64_t flag, void (*load_contents)(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state));
+void help_payload__test(const f_string_t context_variables, const f_string_t context_headers, const uint64_t flag, void (*load_contents)(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra), void * extra);
 
 #ifdef __cplusplus
 } // extern "C"
index eca852c07c4ba31c17b484b8780b4b79433e73b7..2f390a755d7da54f1c76903681e28cbc90059bde 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_int16s__works_join(void **void_state) {
 
-  help_payload__test("abstruse_int16s", "join-abstruse_int16s", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_int16s__join_load_contents);
+  help_payload__test("abstruse_int16s", "join-abstruse_int16s", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_int16s__join_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_int16s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_int16s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_int16s_t * const is_a = &headers->array[0].value.is.a_i16s;
 
index f6fcd8e99a2ba4ed6d9057718ea6a2b7e047ca61..14fcb24542f5fd91b775d75264ce974db664092e 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_int16s__works_join(void **
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_int16s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_int16s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_int16s_join_h
index 7c073bdf79e47b89c0d81931ce23a4d8a6aff2a7..49d266bae959ebb239d13981f31ecef31f627a5c 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_int16s__works_split(void **void_state) {
 
-  help_payload__test("abstruse_int16s", "split-abstruse_int16s", 0, test__fl_fss_payload_header_map__abstruse_int16s__split_load_contents);
+  help_payload__test("abstruse_int16s", "split-abstruse_int16s", 0, test__fl_fss_payload_header_map__abstruse_int16s__split_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_int16s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_int16s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_int16s_t * const is_a = &headers->array[0].value.is.a_i16s;
 
index 812af3ce5d435521ec672cc3f585121642aa2f36..fbb7b096ab8dbee4885b4d7daf2961bb131fc538 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_int16s__works_split(void *
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_int16s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_int16s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_int16s_split_h
index 1b47d60b99c1e06ad3332a3fda77109b7eacce0a..81252d46f09f4ebb9a5fa6a8417e0f22abb8f5ac 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_int32s__works_join(void **void_state) {
 
-  help_payload__test("abstruse_int32s", "join-abstruse_int32s", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_int32s__join_load_contents);
+  help_payload__test("abstruse_int32s", "join-abstruse_int32s", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_int32s__join_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_int32s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_int32s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_int32s_t * const is_a = &headers->array[0].value.is.a_i32s;
 
index 398523e33be5ab26b0303f7f923a0d276f63e66f..cceccac85861e64f070e35e9513ea223d9130927 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_int32s__works_join(void **
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_int32s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_int32s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_int32s_join_h
index 6ccfa2fbd8dd8a04c26442c04eaaa9fee6ef6cc3..b7e0cb51120b3f12633968130490b211b7249e5f 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_int32s__works_split(void **void_state) {
 
-  help_payload__test("abstruse_int32s", "split-abstruse_int32s", 0, test__fl_fss_payload_header_map__abstruse_int32s__split_load_contents);
+  help_payload__test("abstruse_int32s", "split-abstruse_int32s", 0, test__fl_fss_payload_header_map__abstruse_int32s__split_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_int32s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_int32s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_int32s_t * const is_a = &headers->array[0].value.is.a_i32s;
 
index b3dd588c479bef54a5837f45902d9a6b3acdd107..0482169aa4c381ceda8fab1e4cb32635439f0e9b 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_int32s__works_split(void *
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_int32s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_int32s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_int32s_split_h
index bfd96499cc2119a6d62a2d2b9b389bcf594d847a..3f8d4bcb845925f05373da63568a1447ff558249 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_int64s__works_join(void **void_state) {
 
-  help_payload__test("abstruse_int64s", "join-abstruse_int64s", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_int64s__join_load_contents);
+  help_payload__test("abstruse_int64s", "join-abstruse_int64s", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_int64s__join_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_int64s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_int64s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_int64s_t * const is_a = &headers->array[0].value.is.a_i64s;
 
index df2ce191da67c091ade966a15a57569970db5458..05882556592b47e66fde29b1050b3ab8dc5b19d2 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_int64s__works_join(void **
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_int64s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_int64s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_int64s_join_h
index 057caa76d8af290c1df4247181ca57a163167087..d4fbf87414c5739beeaacfeac2edb67df301456a 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_int64s__works_split(void **void_state) {
 
-  help_payload__test("abstruse_int64s", "split-abstruse_int64s", 0, test__fl_fss_payload_header_map__abstruse_int64s__split_load_contents);
+  help_payload__test("abstruse_int64s", "split-abstruse_int64s", 0, test__fl_fss_payload_header_map__abstruse_int64s__split_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_int64s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_int64s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_int64s_t * const is_a = &headers->array[0].value.is.a_i64s;
 
index 20d33b77608c6c6b95c7bbe8d265be6d18cc74e8..626f995981d2c546e8390fc781b0ed32a7f7a673 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_int64s__works_split(void *
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_int64s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_int64s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_int64s_split_h
index 823de7a27474ed5700d13cfc8713ef37d1f7f904..6c9f9deff962d76ae87221a4c403c7e572ff0112 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_int8s__works_join(void **void_state) {
 
-  help_payload__test("abstruse_int8s", "join-abstruse_int8s", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_int8s__join_load_contents);
+  help_payload__test("abstruse_int8s", "join-abstruse_int8s", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_int8s__join_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_int8s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_int8s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_int8s_t * const is_a = &headers->array[0].value.is.a_i8s;
 
index a8d1a055e6ee2a4bf6e45789beea18f3c22935be..85a220e391abf160afbabf02ab298f8fcc8cabfb 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_int8s__works_join(void **s
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_int8s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_int8s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_int8s_join_h
index f49e3e6f7b5764f149864b24c9eb6b6a9bb02f9b..2a7e81ec43f1d022aeccbe9bfbffcc87ec0dc47f 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_int8s__works_split(void **void_state) {
 
-  help_payload__test("abstruse_int8s", "split-abstruse_int8s", 0, test__fl_fss_payload_header_map__abstruse_int8s__split_load_contents);
+  help_payload__test("abstruse_int8s", "split-abstruse_int8s", 0, test__fl_fss_payload_header_map__abstruse_int8s__split_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_int8s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_int8s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_int8s_t * const is_a = &headers->array[0].value.is.a_i8s;
 
index 41e9b98f69a6197559451e56285acf954ee59b7f..35cc38406be96a5169cd55db80fe5c33d15ca99c 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_int8s__works_split(void **
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_int8s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_int8s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_int8s_split_h
index b34ee34306e2f0569f312fb41650c3ca4ce23ad2..2e7acf454a563fd1b1a25caee6a5b7b895ecc397 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_signed__works_join(void **void_state) {
 
-  help_payload__test("abstruse_signed", "join-abstruse_signed", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_signed__join_load_contents);
+  help_payload__test("abstruse_signed", "join-abstruse_signed", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_signed__join_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_signed__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_signed__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   for (f_number_unsigned_t i = 0; i < contents.used; ++i, ++headers->used) {
 
index 618e6e95951cbac857399fe638c3015b749b54c9..0699858cac6b628c6594c0107a04aa3c7aec0416 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_signed__works_join(void **
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_signed__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_signed__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_signed_join_h
index e9140dbd3d449f4b5efa63df67a2e9b024181588..50828d8f9e765b0addb6df8624ff05248afefb53 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_signeds__works_join(void **void_state) {
 
-  help_payload__test("abstruse_signeds", "join-abstruse_signeds", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_signeds__join_load_contents);
+  help_payload__test("abstruse_signeds", "join-abstruse_signeds", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_signeds__join_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_signeds__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_signeds__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_number_signeds_t * const is_a = &headers->array[0].value.is.a_signeds;
 
index c69539f480ec8f105de4c5077519c686c5294e2a..4f4169f1eb564c61b65b20af16539c60e1a518f3 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_signeds__works_join(void *
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_signeds__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_signeds__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_signeds_join_h
index 29b7a53d35ac0c18bb502bb954b3a3ca6a96fb19..2a7e837deb3ae54e454b961b9b5db4f324fb87e6 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_signeds__works_split(void **void_state) {
 
-  help_payload__test("abstruse_signeds", "split-abstruse_signeds", 0, test__fl_fss_payload_header_map__abstruse_signeds__split_load_contents);
+  help_payload__test("abstruse_signeds", "split-abstruse_signeds", 0, test__fl_fss_payload_header_map__abstruse_signeds__split_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_signeds__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_signeds__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_number_signeds_t * const is_a = &headers->array[0].value.is.a_signeds;
 
index 4989bab92c96896085727a9400d9881ddebd36eb..1647a57eeb8abfee76d3f1fdfa522a8d06399224 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_signeds__works_split(void
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_signeds__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_signeds__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_signeds_split_h
index fefa7d24992b6656f038e993a684a3ec206094f6..1ab725e544c8123641f9018c1feeea7cb46e59cc 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_string__works_join(void **void_state) {
 
-  help_payload__test("abstruse_string", "join-abstruse_string", 0, test__fl_fss_payload_header_map__abstruse_string__join_load_contents);
+  help_payload__test("abstruse_string", "join-abstruse_string", 0, test__fl_fss_payload_header_map__abstruse_string__join_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_string__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_string__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   for (f_number_unsigned_t i = 0; i < contents.used; ++i, ++headers->used) {
 
index dcb7bed4638dbf530f26338e47b2fe6d91501872..22732fbd896b1f393571c347115f25cdc967b587 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_string__works_join(void **
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_string__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_string__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_string_join_h
diff --git a/level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_strings-join.c b/level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_strings-join.c
new file mode 100644 (file)
index 0000000..07c3ed3
--- /dev/null
@@ -0,0 +1,43 @@
+#include "test-fss.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_payload_header_map__abstruse_strings__works_join(void **void_state) {
+
+  f_string_t *strings = 0;
+
+  help_payload__test("abstruse_strings", "join-abstruse_strings", f_fss_payload_header_map_flag_join_strings_e, test__fl_fss_payload_header_map__abstruse_strings__join_load_contents, (void *) &strings);
+
+  if (strings) free(strings);
+}
+
+void test__fl_fss_payload_header_map__abstruse_strings__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
+
+  f_string_t **strings = (f_string_t **) extra;
+
+  if (*strings) free(*strings);
+
+  //headers->array[0].value.is.a_strings = calloc(contents.used + 1, sizeof(f_string_t *));
+  //assert_int_not_equal(headers->array[0].value.is.a_strings, 0);
+  *strings = calloc(contents.used + 1, sizeof(f_string_t *));
+  assert_int_not_equal(*strings, 0);
+
+  headers->array[0].value.is.a_strings = *strings;
+  headers->array[0].key.used = 0;
+  headers->array[0].value.type = f_abstruse_strings_e;
+
+  state->status = f_string_dynamic_append(object, &headers->array[headers->used].key);
+  assert_int_equal(state->status, F_okay);
+
+  for (f_number_unsigned_t i = 0; i < contents.used; ++i) {
+    headers->array[0].value.is.a_strings[i] = contents.array[i].string;
+  } // for
+
+  headers->array[0].value.is.a_strings[contents.used] = 0;
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_strings-join.h b/level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_strings-join.h
new file mode 100644 (file)
index 0000000..6807863
--- /dev/null
@@ -0,0 +1,37 @@
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_payload_header_map__abstruse_strings_join_h
+#define _TEST__FL_fss_payload_header_map__abstruse_strings_join_h
+
+/**
+ * Test that the function works for abstruse_strings type.
+ *
+ * @see fl_fss_payload_header_map()
+ */
+extern void test__fl_fss_payload_header_map__abstruse_strings__works_join(void **state);
+
+/**
+ * Callback to load the contents for the test.
+ *
+ * @param object
+ *   The object parameter.
+ * @param contents
+ *   The contents parameter.
+ * @param headers
+ *   The headers parameter.
+* @param state
+ *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
+ */
+extern void test__fl_fss_payload_header_map__abstruse_strings__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
+
+#endif // _TEST__FL_fss_payload_header_map__abstruse_strings_join_h
diff --git a/level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_strings-split.c b/level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_strings-split.c
new file mode 100644 (file)
index 0000000..1c6d91c
--- /dev/null
@@ -0,0 +1,43 @@
+#include "test-fss.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_payload_header_map__abstruse_strings__works_split(void **void_state) {
+
+  f_string_t *strings = 0;
+
+  help_payload__test("abstruse_strings", "split-abstruse_strings", 0, test__fl_fss_payload_header_map__abstruse_strings__split_load_contents, (void *) &strings);
+
+  if (strings) free(strings);
+}
+
+void test__fl_fss_payload_header_map__abstruse_strings__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
+
+  f_string_t **strings = (f_string_t **) extra;
+
+  if (*strings) free(*strings);
+
+  //headers->array[0].value.is.a_strings = calloc(contents.used + 1, sizeof(f_string_t *));
+  //assert_int_not_equal(headers->array[0].value.is.a_strings, 0);
+  *strings = calloc(contents.used + 1, sizeof(f_string_t *));
+  assert_int_not_equal(*strings, 0);
+
+  headers->array[0].value.is.a_strings = *strings;
+  headers->array[0].key.used = 0;
+  headers->array[0].value.type = f_abstruse_strings_e;
+
+  state->status = f_string_dynamic_append(object, &headers->array[headers->used].key);
+  assert_int_equal(state->status, F_okay);
+
+  for (f_number_unsigned_t i = 0; i < contents.used; ++i) {
+    headers->array[0].value.is.a_strings[i] = contents.array[i].string;
+  } // for
+
+  headers->array[0].value.is.a_strings[contents.used] = 0;
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_strings-split.h b/level_1/fl_fss/tests/unit/c/test-fss-payload_header_map-abstruse_strings-split.h
new file mode 100644 (file)
index 0000000..45ba0cf
--- /dev/null
@@ -0,0 +1,37 @@
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_payload_header_map__abstruse_strings_split_h
+#define _TEST__FL_fss_payload_header_map__abstruse_strings_split_h
+
+/**
+ * Test that the function works for abstruse_strings type.
+ *
+ * @see fl_fss_payload_header_map()
+ */
+extern void test__fl_fss_payload_header_map__abstruse_strings__works_split(void **state);
+
+/**
+ * Callback to load the contents for the test.
+ *
+ * @param object
+ *   The object parameter.
+ * @param contents
+ *   The contents parameter.
+ * @param headers
+ *   The headers parameter.
+* @param state
+ *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
+ */
+extern void test__fl_fss_payload_header_map__abstruse_strings__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
+
+#endif // _TEST__FL_fss_payload_header_map__abstruse_strings_split_h
index 93de46fddc1feda5d31d0516eb1b504f6241e609..529df2f6ec4076111c72818e4ddc23afcd0bfd78 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_uint16s__works_join(void **void_state) {
 
-  help_payload__test("abstruse_uint16s", "join-abstruse_uint16s", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_uint16s__join_load_contents);
+  help_payload__test("abstruse_uint16s", "join-abstruse_uint16s", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_uint16s__join_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_uint16s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_uint16s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_uint16s_t * const is_a = &headers->array[0].value.is.a_u16s;
 
index 116e06fdfc4c7de5e4a10469bc5163603d788937..1b599b37976f6dd3264d9a867c5c85e9d35e7b12 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_uint16s__works_join(void *
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_uint16s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_uint16s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_uint16s_join_h
index bd5bdcaf34d3b6936b11f5f8f32f4879a1d8361d..de582048e51407ff3705ed5b7b970c6125a5325d 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_uint16s__works_split(void **void_state) {
 
-  help_payload__test("abstruse_uint16s", "split-abstruse_uint16s", 0, test__fl_fss_payload_header_map__abstruse_uint16s__split_load_contents);
+  help_payload__test("abstruse_uint16s", "split-abstruse_uint16s", 0, test__fl_fss_payload_header_map__abstruse_uint16s__split_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_uint16s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_uint16s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_uint16s_t * const is_a = &headers->array[0].value.is.a_u16s;
 
index 666c1b7fd2200bb795919ba454f74eac31cc510b..d322507b1a4a0f6defed110b3a21ced0b0095d5b 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_uint16s__works_split(void
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_uint16s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_uint16s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_uint16s_split_h
index 485c36446c9f46b417c527bbb566e4b4cd0781aa..dd51a2d69a2f93f1ebea4c11d8e18746ca977c64 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_uint32s__works_join(void **void_state) {
 
-  help_payload__test("abstruse_uint32s", "join-abstruse_uint32s", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_uint32s__join_load_contents);
+  help_payload__test("abstruse_uint32s", "join-abstruse_uint32s", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_uint32s__join_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_uint32s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_uint32s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_uint32s_t * const is_a = &headers->array[0].value.is.a_u32s;
 
index cf841ede3b0ac64506128b02aeaddba85ecb0543..b87b372a014618cc0591da73b4f799a6e327ac50 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_uint32s__works_join(void *
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_uint32s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_uint32s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_uint32s_join_h
index 481d40b8c85cd04a81b6aeb85c0414b19358e652..744bfc34916b41d6412cc2a18a00733f5d50600b 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_uint32s__works_split(void **void_state) {
 
-  help_payload__test("abstruse_uint32s", "split-abstruse_uint32s", 0, test__fl_fss_payload_header_map__abstruse_uint32s__split_load_contents);
+  help_payload__test("abstruse_uint32s", "split-abstruse_uint32s", 0, test__fl_fss_payload_header_map__abstruse_uint32s__split_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_uint32s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_uint32s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_uint32s_t * const is_a = &headers->array[0].value.is.a_u32s;
 
index 1fe51067abaa16386e17c102de0ee25ca6030561..c0b2324c5e4c1dacd85f8095da59698c097cc78a 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_uint32s__works_split(void
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_uint32s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_uint32s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_uint32s_split_h
index 73f100a3d8ae28f1031f8b712590745f9931d309..a91dfc9b588a8338065936f02b7eaf45d8da6445 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_uint64s__works_join(void **void_state) {
 
-  help_payload__test("abstruse_uint64s", "join-abstruse_uint64s", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_uint64s__join_load_contents);
+  help_payload__test("abstruse_uint64s", "join-abstruse_uint64s", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_uint64s__join_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_uint64s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_uint64s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_uint64s_t * const is_a = &headers->array[0].value.is.a_u64s;
 
index 424f0649d03050e360b4cc8edc033feeb5e5a473..4a0ffe3d205b55eb37602b0a26b536443be65db6 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_uint64s__works_join(void *
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_uint64s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_uint64s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_uint64s_join_h
index 3683896f14c9dde21d9949b96b9370277bb6dada..7f8faa1d385029c97675e9b14108b00492725ae0 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_uint64s__works_split(void **void_state) {
 
-  help_payload__test("abstruse_uint64s", "split-abstruse_uint64s", 0, test__fl_fss_payload_header_map__abstruse_uint64s__split_load_contents);
+  help_payload__test("abstruse_uint64s", "split-abstruse_uint64s", 0, test__fl_fss_payload_header_map__abstruse_uint64s__split_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_uint64s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_uint64s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_uint64s_t * const is_a = &headers->array[0].value.is.a_u64s;
 
index 02fbafc3732294c2d6847e40706f3f143aed9ad3..2f17af2c4eee9e6eea8054cd7e6c7036c06a3738 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_uint64s__works_split(void
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_uint64s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_uint64s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_uint64s_split_h
index f6a2a97ec84cb42b6242be30cf5f5635ec8cf814..0254ab7aa1a840e16a42147b31b5b140b2268061 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_uint8s__works_join(void **void_state) {
 
-  help_payload__test("abstruse_uint8s", "join-abstruse_uint8s", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_uint8s__join_load_contents);
+  help_payload__test("abstruse_uint8s", "join-abstruse_uint8s", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_uint8s__join_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_uint8s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_uint8s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_uint8s_t * const is_a = &headers->array[0].value.is.a_u8s;
 
index 2d47f69e8f643c6ec10ed031a59f1f30a45fb8ba..5969efa5d6f0b88324a5e46a50f5e67f1af4210e 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_uint8s__works_join(void **
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_uint8s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_uint8s__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_uint8s_join_h
index d8d7113b4dcdf6515a6545019449c55451ab6632..774cb7d85ee381013ef7af5161ba1f906b8e3092 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_uint8s__works_split(void **void_state) {
 
-  help_payload__test("abstruse_uint8s", "split-abstruse_uint8s", 0, test__fl_fss_payload_header_map__abstruse_uint8s__split_load_contents);
+  help_payload__test("abstruse_uint8s", "split-abstruse_uint8s", 0, test__fl_fss_payload_header_map__abstruse_uint8s__split_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_uint8s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_uint8s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_uint8s_t * const is_a = &headers->array[0].value.is.a_u8s;
 
index e04fd8afed704452a2bff8617f3ca18b720d63c5..1bed8b0dbd69961367c664dd31d47486f74ab639 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_uint8s__works_split(void *
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_uint8s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_uint8s__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_uint8s_split_h
index adfb87d3d6fd74cc7a9dd57ae045acbb68a6bc16..9ca6b3e0f374d93091b72b100ceb46aca6babb5b 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_unsigned__works_join(void **void_state) {
 
-  help_payload__test("abstruse_unsigned", "join-abstruse_unsigned", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_unsigned__join_load_contents);
+  help_payload__test("abstruse_unsigned", "join-abstruse_unsigned", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_unsigned__join_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_unsigned__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_unsigned__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   for (f_number_unsigned_t i = 0; i < contents.used; ++i, ++headers->used) {
 
index 8c04f9571f5cefc09d7c764f1a829b91c7c8bfe0..68db3e6caaea17b548ec48049cdc13cf4d6e6ba3 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_unsigned__works_join(void
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_unsigned__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_unsigned__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_unsigned_join_h
index 26b87431bd69063693be816b3220b0ae210fdaec..47bcdfb575c5fb8af623e1ae6b37d075e05b9a95 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_unsigneds__works_join(void **void_state) {
 
-  help_payload__test("abstruse_unsigneds", "join-abstruse_unsigneds", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_unsigneds__join_load_contents);
+  help_payload__test("abstruse_unsigneds", "join-abstruse_unsigneds", f_fss_payload_header_map_flag_join_digits_e, test__fl_fss_payload_header_map__abstruse_unsigneds__join_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_unsigneds__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_unsigneds__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_number_unsigneds_t * const is_a = &headers->array[0].value.is.a_unsigneds;
 
index 7586d0e58e2659fc9d86fdc6d1dd294a270d7c8a..449fab7ca474355e013999e05576faf4d79e1053 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_unsigneds__works_join(void
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_unsigneds__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_unsigneds__join_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_unsigneds_join_h
index 8c420a1e62f222e277e989537966e7096f44acb8..7e0f19712548aaaa660d7eecf66c3662f7c95b4a 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_unsigneds__works_split(void **void_state) {
 
-  help_payload__test("abstruse_unsigneds", "split-abstruse_unsigneds", 0, test__fl_fss_payload_header_map__abstruse_unsigneds__split_load_contents);
+  help_payload__test("abstruse_unsigneds", "split-abstruse_unsigneds", 0, test__fl_fss_payload_header_map__abstruse_unsigneds__split_load_contents, 0);
 }
 
-void test__fl_fss_payload_header_map__abstruse_unsigneds__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state) {
+void test__fl_fss_payload_header_map__abstruse_unsigneds__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra) {
 
   f_number_unsigneds_t * const is_a = &headers->array[0].value.is.a_unsigneds;
 
index 2b3b3f26816b6fc1355ad7783fb47eb02a546d54..074304267c331560cb4493dd86d3e864ace53adb 100644 (file)
@@ -26,9 +26,12 @@ extern void test__fl_fss_payload_header_map__abstruse_unsigneds__works_split(voi
  *   The contents parameter.
  * @param headers
  *   The headers parameter.
- * @param state
+* @param state
  *   The state parameter.
+ * @param extra
+ *   (optional) The extra parameter.
+ *   Set to NULL to not use.
  */
-extern void test__fl_fss_payload_header_map__abstruse_unsigneds__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state);
+extern void test__fl_fss_payload_header_map__abstruse_unsigneds__split_load_contents(const f_string_static_t object, const f_string_dynamics_t contents, f_abstruse_maps_t * const headers, f_state_t * const state, void * extra);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_unsigneds_split_h
index 329815cdaa76c9152e46d1d2036e860b77630c05..703e2546b8619249caf8dd45ae1cb2740a5683dc 100644 (file)
@@ -72,7 +72,8 @@ int main(void) {
     cmocka_unit_test(test__fl_fss_payload_header_map__abstruse_signeds__works_join),
     cmocka_unit_test(test__fl_fss_payload_header_map__abstruse_signeds__works_split),
     cmocka_unit_test(test__fl_fss_payload_header_map__abstruse_string__works_join),
-    //cmocka_unit_test(test__fl_fss_payload_header_map__abstruse_strings__works_join),
+    cmocka_unit_test(test__fl_fss_payload_header_map__abstruse_strings__works_join),
+    cmocka_unit_test(test__fl_fss_payload_header_map__abstruse_strings__works_split),
     cmocka_unit_test(test__fl_fss_payload_header_map__abstruse_uint8s__works_join),
     cmocka_unit_test(test__fl_fss_payload_header_map__abstruse_uint8s__works_split),
     cmocka_unit_test(test__fl_fss_payload_header_map__abstruse_uint16s__works_join),
index 53b443a16f9d80208cca860b9fbd9ddba8547e97..cac7fad5b68a0ae5f129f510e9230761dcd2e5f0 100644 (file)
@@ -74,6 +74,8 @@
 #include "test-fss-payload_header_map-abstruse_signeds-join.h"
 #include "test-fss-payload_header_map-abstruse_signeds-split.h"
 #include "test-fss-payload_header_map-abstruse_string-join.h"
+#include "test-fss-payload_header_map-abstruse_strings-join.h"
+#include "test-fss-payload_header_map-abstruse_strings-split.h"
 #include "test-fss-payload_header_map-abstruse_uint8s-join.h"
 #include "test-fss-payload_header_map-abstruse_uint8s-split.h"
 #include "test-fss-payload_header_map-abstruse_uint16s-join.h"