]> Kevux Git Server - fll/commitdiff
Progress: Further simplify tests, merging the number and the string helper tests.
authorKevin Day <kevin@kevux.org>
Sun, 3 Mar 2024 01:31:50 +0000 (19:31 -0600)
committerKevin Day <kevin@kevux.org>
Sun, 3 Mar 2024 01:34:30 +0000 (19:34 -0600)
The number helper can also be used as-is for the string helper and so rename the file and functions to a "payload" helper.
I originally had "at" in the file names because I was passing an index.
That index parameter got removed but I forgot to remove the "at" from the name of the functions.
The "at" is now removed.
I began adding the strings tests but I ran out of time to do further work on them.

54 files changed:
level_1/fl_fss/data/build/settings-tests
level_1/fl_fss/data/tests/headers/payload-join-abstruse_strings-0.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_strings-1.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/headers/payload-join-abstruse_strings-2.txt [new file with mode: 0644]
level_1/fl_fss/data/tests/variables/payload-abstruse_strings.txt [new file with mode: 0644]
level_1/fl_fss/tests/unit/c/help-fss-payload.c [moved from level_1/fl_fss/tests/unit/c/help-fss-number.c with 93% similarity]
level_1/fl_fss/tests/unit/c/help-fss-payload.h [moved from level_1/fl_fss/tests/unit/c/help-fss-number.h with 60% similarity]
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_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.h

index 7adf13406cf374658d8064210c6b35c78de5fc8b..8e5330c80aa67aca2297504152865862ede5df11 100644 (file)
@@ -44,7 +44,7 @@ build_sources_program test-fss-payload_header_map-abstruse_signeds-join.c test-f
 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.c data-fss.c help-fss.c help-fss-number.c
+build_sources_program test-fss.c data-fss.c help-fss.c help-fss-payload.c
 
 build_script no
 build_shared yes
diff --git a/level_1/fl_fss/data/tests/headers/payload-join-abstruse_strings-0.txt b/level_1/fl_fss/data/tests/headers/payload-join-abstruse_strings-0.txt
new file mode 100644 (file)
index 0000000..7b06942
--- /dev/null
@@ -0,0 +1,6 @@
+a
+4
+0
+hello
+"some thing"
+3全#$⸙
diff --git a/level_1/fl_fss/data/tests/headers/payload-join-abstruse_strings-1.txt b/level_1/fl_fss/data/tests/headers/payload-join-abstruse_strings-1.txt
new file mode 100644 (file)
index 0000000..50e859f
--- /dev/null
@@ -0,0 +1,5 @@
+b
+3
+全
+⸙
+"␀ ␀ ␀ ␀ ␀ ␀"
diff --git a/level_1/fl_fss/data/tests/headers/payload-join-abstruse_strings-2.txt b/level_1/fl_fss/data/tests/headers/payload-join-abstruse_strings-2.txt
new file mode 100644 (file)
index 0000000..41f6980
--- /dev/null
@@ -0,0 +1,4 @@
+c
+2
+�
+""a b \" c"
diff --git a/level_1/fl_fss/data/tests/variables/payload-abstruse_strings.txt b/level_1/fl_fss/data/tests/variables/payload-abstruse_strings.txt
new file mode 100644 (file)
index 0000000..d64b7e9
--- /dev/null
@@ -0,0 +1,15 @@
+a
+4
+0
+hello
+some thing
+3全#$⸙
+b
+3
+全
+⸙
+␀ ␀ ␀ ␀ ␀ ␀
+c
+2
+�
+"a b " c
similarity index 93%
rename from level_1/fl_fss/tests/unit/c/help-fss-number.c
rename to level_1/fl_fss/tests/unit/c/help-fss-payload.c
index 4f6adaa99f582004041d2c2a3d2aa055ac88f066..c1ad74538f67473e625856d761c8f0c0ed37f8c0 100644 (file)
@@ -4,7 +4,7 @@
 extern "C" {
 #endif
 
-void help_number__test_payload(const f_string_t context_variables, const f_string_t context_headers, const uint64_t flag, void (*load_contents_at)(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)) {
 
   // 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_number__test_payload(const f_string_t context_variables, const f_strin
       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_at(object, contents, &headers, &state);
+      load_contents(object, contents, &headers, &state);
 
       if (object.string) free(object.string);
 
similarity index 60%
rename from level_1/fl_fss/tests/unit/c/help-fss-number.h
rename to level_1/fl_fss/tests/unit/c/help-fss-payload.h
index da90da094c460e953a196ced993c420a7e937837..d189548ee78a3e697db09afcf97519b59458a158 100644 (file)
@@ -7,8 +7,8 @@
  *
  * Helper for the fss project tests.
  */
-#ifndef _HELP__FL_fss_number_h
-#define _HELP__FL_fss_number_h
+#ifndef _HELP__FL_fss_payload_h
+#define _HELP__FL_fss_payload_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -23,13 +23,13 @@ extern "C" {
  *   The context name of the headers file for data__file_open__named_at().
  * @param flag
  *   The payload header state data flag.
- * @param load_contents_at
+ * @param load_contents
  *   A callback to perform the type-specific content loading translation of the number.
  */
-void help_number__test_payload(const f_string_t context_variables, const f_string_t context_headers, const uint64_t flag, void (*load_contents_at)(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));
 
 #ifdef __cplusplus
 } // extern "C"
 #endif
 
-#endif // _HELP__FL_fss_number_h
+#endif // _HELP__FL_fss_payload_h
index 279402d4eea3272b966a541a625f7fd7a9989b65..eca852c07c4ba31c17b484b8780b4b79433e73b7 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_int16s__works_join(void **void_state) {
 
-  help_number__test_payload("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_at);
+  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);
 }
 
-void test__fl_fss_payload_header_map__abstruse_int16s__join_load_contents_at(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) {
 
   f_int16s_t * const is_a = &headers->array[0].value.is.a_i16s;
 
index cac38e8f451202c7c723dc0c470f2833c0aa5232..f6fcd8e99a2ba4ed6d9057718ea6a2b7e047ca61 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_int16s__works_join(void **
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_int16s__join_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_int16s_join_h
index 344fa496959e5df7e18086d9a29c1349a3e83f27..7c073bdf79e47b89c0d81931ce23a4d8a6aff2a7 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_int16s__works_split(void **void_state) {
 
-  help_number__test_payload("abstruse_int16s", "split-abstruse_int16s", 0, test__fl_fss_payload_header_map__abstruse_int16s__split_load_contents_at);
+  help_payload__test("abstruse_int16s", "split-abstruse_int16s", 0, test__fl_fss_payload_header_map__abstruse_int16s__split_load_contents);
 }
 
-void test__fl_fss_payload_header_map__abstruse_int16s__split_load_contents_at(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) {
 
   f_int16s_t * const is_a = &headers->array[0].value.is.a_i16s;
 
index 9558b2148640c93a9cb969e084bde82aaa33b24f..812af3ce5d435521ec672cc3f585121642aa2f36 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_int16s__works_split(void *
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_int16s__split_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_int16s_split_h
index b15d3381b6aebb50c1166e172a06bbb7d12983b4..1b47d60b99c1e06ad3332a3fda77109b7eacce0a 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_int32s__works_join(void **void_state) {
 
-  help_number__test_payload("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_at);
+  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);
 }
 
-void test__fl_fss_payload_header_map__abstruse_int32s__join_load_contents_at(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) {
 
   f_int32s_t * const is_a = &headers->array[0].value.is.a_i32s;
 
index 7c15758114a7a67c8cac573655ef8b4e19de971b..398523e33be5ab26b0303f7f923a0d276f63e66f 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_int32s__works_join(void **
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_int32s__join_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_int32s_join_h
index 675b3815bfe868411d9103ea9eb0dc65940246dc..6ccfa2fbd8dd8a04c26442c04eaaa9fee6ef6cc3 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_int32s__works_split(void **void_state) {
 
-  help_number__test_payload("abstruse_int32s", "split-abstruse_int32s", 0, test__fl_fss_payload_header_map__abstruse_int32s__split_load_contents_at);
+  help_payload__test("abstruse_int32s", "split-abstruse_int32s", 0, test__fl_fss_payload_header_map__abstruse_int32s__split_load_contents);
 }
 
-void test__fl_fss_payload_header_map__abstruse_int32s__split_load_contents_at(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) {
 
   f_int32s_t * const is_a = &headers->array[0].value.is.a_i32s;
 
index 828dbd7c02c7f55690d17849c9b65b9fc32b644b..b3dd588c479bef54a5837f45902d9a6b3acdd107 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_int32s__works_split(void *
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_int32s__split_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_int32s_split_h
index 262064783db86f4b7568533378501f3dcebd9cb9..bfd96499cc2119a6d62a2d2b9b389bcf594d847a 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_int64s__works_join(void **void_state) {
 
-  help_number__test_payload("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_at);
+  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);
 }
 
-void test__fl_fss_payload_header_map__abstruse_int64s__join_load_contents_at(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) {
 
   f_int64s_t * const is_a = &headers->array[0].value.is.a_i64s;
 
index 9a50ac9cc33e6df951b6bb7da55c1a3edec80453..df2ce191da67c091ade966a15a57569970db5458 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_int64s__works_join(void **
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_int64s__join_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_int64s_join_h
index 41b14160be9ef2f63b4824a232207cdfdc177749..057caa76d8af290c1df4247181ca57a163167087 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_int64s__works_split(void **void_state) {
 
-  help_number__test_payload("abstruse_int64s", "split-abstruse_int64s", 0, test__fl_fss_payload_header_map__abstruse_int64s__split_load_contents_at);
+  help_payload__test("abstruse_int64s", "split-abstruse_int64s", 0, test__fl_fss_payload_header_map__abstruse_int64s__split_load_contents);
 }
 
-void test__fl_fss_payload_header_map__abstruse_int64s__split_load_contents_at(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) {
 
   f_int64s_t * const is_a = &headers->array[0].value.is.a_i64s;
 
index ec5113190ceb278c70dcb6adec40e9e368e9ef7a..20d33b77608c6c6b95c7bbe8d265be6d18cc74e8 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_int64s__works_split(void *
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_int64s__split_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_int64s_split_h
index ff45ab56d3a181ebe1ca0cec7907894179497c1a..823de7a27474ed5700d13cfc8713ef37d1f7f904 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_int8s__works_join(void **void_state) {
 
-  help_number__test_payload("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_at);
+  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);
 }
 
-void test__fl_fss_payload_header_map__abstruse_int8s__join_load_contents_at(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) {
 
   f_int8s_t * const is_a = &headers->array[0].value.is.a_i8s;
 
index a610d1a5e3358e42aca7694a986d452967c4d407..a8d1a055e6ee2a4bf6e45789beea18f3c22935be 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_int8s__works_join(void **s
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_int8s__join_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_int8s_join_h
index bfca9a3d18d031ecb4e862e3feaa91358d843a18..f49e3e6f7b5764f149864b24c9eb6b6a9bb02f9b 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_int8s__works_split(void **void_state) {
 
-  help_number__test_payload("abstruse_int8s", "split-abstruse_int8s", 0, test__fl_fss_payload_header_map__abstruse_int8s__split_load_contents_at);
+  help_payload__test("abstruse_int8s", "split-abstruse_int8s", 0, test__fl_fss_payload_header_map__abstruse_int8s__split_load_contents);
 }
 
-void test__fl_fss_payload_header_map__abstruse_int8s__split_load_contents_at(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) {
 
   f_int8s_t * const is_a = &headers->array[0].value.is.a_i8s;
 
index 7172c7f21cf8ca12335ae6383786e7ecc5835ea2..41e9b98f69a6197559451e56285acf954ee59b7f 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_int8s__works_split(void **
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_int8s__split_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_int8s_split_h
index 876687b0ea5eb9c0adeb311879ad09751f33534c..b34ee34306e2f0569f312fb41650c3ca4ce23ad2 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_signed__works_join(void **void_state) {
 
-  help_number__test_payload("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_at);
+  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);
 }
 
-void test__fl_fss_payload_header_map__abstruse_signed__join_load_contents_at(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) {
 
   for (f_number_unsigned_t i = 0; i < contents.used; ++i, ++headers->used) {
 
index 617cbe5df29b8e6101226cd84caa7f0d642d2739..618e6e95951cbac857399fe638c3015b749b54c9 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_signed__works_join(void **
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_signed__join_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_signed_join_h
index 728a0a635bb8a5b6267c9c2283461da6b60d5505..e9140dbd3d449f4b5efa63df67a2e9b024181588 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_signeds__works_join(void **void_state) {
 
-  help_number__test_payload("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_at);
+  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);
 }
 
-void test__fl_fss_payload_header_map__abstruse_signeds__join_load_contents_at(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) {
 
   f_number_signeds_t * const is_a = &headers->array[0].value.is.a_signeds;
 
index 53cb59fe00c64a47853c7b2347c5bdf8aad23188..c69539f480ec8f105de4c5077519c686c5294e2a 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_signeds__works_join(void *
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_signeds__join_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_signeds_join_h
index 50bbd82b7c071242698c913b87dc393aec5f6a68..29b7a53d35ac0c18bb502bb954b3a3ca6a96fb19 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_signeds__works_split(void **void_state) {
 
-  help_number__test_payload("abstruse_signeds", "split-abstruse_signeds", 0, test__fl_fss_payload_header_map__abstruse_signeds__split_load_contents_at);
+  help_payload__test("abstruse_signeds", "split-abstruse_signeds", 0, test__fl_fss_payload_header_map__abstruse_signeds__split_load_contents);
 }
 
-void test__fl_fss_payload_header_map__abstruse_signeds__split_load_contents_at(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) {
 
   f_number_signeds_t * const is_a = &headers->array[0].value.is.a_signeds;
 
index 7171f7b3b26274c7a0cd6ff8604e979d5b07f1f1..4989bab92c96896085727a9400d9881ddebd36eb 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_signeds__works_split(void
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_signeds__split_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_signeds_split_h
index c1e742908faa39843988dab7696dd97c4ed13b41..fefa7d24992b6656f038e993a684a3ec206094f6 100644 (file)
@@ -6,127 +6,21 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_string__works_join(void **void_state) {
 
-  // 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.
-  //       Following the digit is a single Object line.
-  //       Following the Object line is a line for each Content designated by the first line (can be 0).
-  //       Following this Content line (even if 0 lines) should be the end of the test file or the start of the next set for the next line in the headers file.
-  FILE *file_variables = data__file_open__named("variables", "payload", "abstruse_string");
-  FILE *file_headers = 0;
-
-  assert_non_null(file_variables);
-
-  f_abstruse_maps_t headers = f_abstruse_maps_t_initialize;
-  f_state_t state = f_state_t_initialize;
-  f_fss_payload_header_state_t data = f_fss_payload_header_state_t_initialize;
-  f_string_dynamic_t object = f_string_dynamic_t_initialize;
-  f_string_dynamics_t contents = f_string_dynamics_t_initialize;
-  f_string_dynamic_t cache = f_string_dynamic_t_initialize;
-  f_string_maps_t destinations = f_string_maps_t_initialize;
-  f_string_maps_t expects = f_string_maps_t_initialize;
-
-  {
-    state.status = F_none;
-    state.data = &data;
-    data.cache = &cache;
-
-    for (uint16_t at = 0; ; ++at) {
-
-      if (help__read_line_object(file_variables, &object)) break;
-      if (help__read_line_contents__single(file_variables, &contents, F_false)) break;
-
-      state.status = f_memory_array_increase_by(contents.used, sizeof(f_abstruse_map_t), (void **) &headers.array, &headers.used, &headers.size);
-      assert_true(F_status_is_error_not(state.status));
-
-      for (f_number_unsigned_t i = 0; i < contents.used; ++i, ++headers.used) {
-
-        headers.array[headers.used].key.used = 0;
-
-        state.status = f_string_dynamic_append(object, &headers.array[headers.used].key);
-        assert_int_equal(state.status, F_okay);
-
-        headers.array[headers.used].value.type = f_abstruse_string_e;
-        headers.array[headers.used].value.is.a_string = contents.array[i].string;
-      } // for
-
-      if (object.string) free(object.string);
-
-      object.string = 0;
-      object.used = 0;
-      object.size = 0;
-
-      file_headers = data__file_open__named_at("headers", "payload", "join-abstruse_string", at);
-      assert_non_null(file_headers);
-
-      help__read_line_object(file_headers, &object);
-
-      for (;;) {
-        state.status = f_memory_array_increase(state.step_small, sizeof(f_string_map_t), (void **) &expects.array, &expects.used, &expects.size);
-        assert_true(F_status_is_error_not(state.status));
-
-        if (help__read_line_expects__single(file_headers, object, &expects)) break;
-      } // for
-
-      fl_fss_payload_header_map(headers, &destinations, &state);
-      assert_int_equal(state.status, F_okay);
-      assert_int_equal(destinations.used, expects.used);
-
-      for (f_number_unsigned_t i = 0; i < destinations.used; ++i) {
-
-        assert_int_equal(destinations.array[i].key.used, expects.array[i].key.used);
-        assert_int_equal(destinations.array[i].value.used, expects.array[i].value.used);
-
-        assert_string_equal(destinations.array[i].key.string, expects.array[i].key.string);
-        assert_string_equal(destinations.array[i].value.string, expects.array[i].value.string);
-      } // for
-
-      if (object.string) free(object.string);
-      if (cache.string) free(cache.string);
-      if (file_headers) fclose(file_headers);
-
-      f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &contents.array, &contents.used, &contents.size, &f_string_dynamics_delete_callback);
-      f_memory_arrays_resize(0, sizeof(f_abstruse_map_t), (void **) &headers.array, &headers.used, &headers.size, &f_abstruse_maps_delete_callback);
-      f_memory_arrays_resize(0, sizeof(f_string_map_t), (void **) &destinations.array, &destinations.used, &destinations.size, &f_string_maps_delete_callback);
-      f_memory_arrays_resize(0, sizeof(f_string_map_t), (void **) &expects.array, &expects.used, &expects.size, &f_string_maps_delete_callback);
-
-      file_headers = 0;
-
-      object.string = 0;
-      object.used = 0;
-      object.size = 0;
-
-      cache.string = 0;
-      cache.used = 0;
-      cache.size = 0;
-
-      contents.array = 0;
-      contents.used = 0;
-      contents.size = 0;
-
-      headers.array = 0;
-      headers.used = 0;
-      headers.size = 0;
+  help_payload__test("abstruse_string", "join-abstruse_string", 0, test__fl_fss_payload_header_map__abstruse_string__join_load_contents);
+}
 
-      destinations.array = 0;
-      destinations.used = 0;
-      destinations.size = 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) {
 
-      expects.array = 0;
-      expects.used = 0;
-      expects.size = 0;
-    } // for
-  }
+  for (f_number_unsigned_t i = 0; i < contents.used; ++i, ++headers->used) {
 
-  if (file_variables) fclose(file_variables);
-  if (file_headers) fclose(file_headers);
+    headers->array[headers->used].key.used = 0;
 
-  if (object.string) free(object.string);
-  if (cache.string) free(cache.string);
+    state->status = f_string_dynamic_append(object, &headers->array[headers->used].key);
+    assert_int_equal(state->status, F_okay);
 
-  f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &contents.array, &contents.used, &contents.size, &f_string_dynamics_delete_callback);
-  f_memory_arrays_resize(0, sizeof(f_abstruse_map_t), (void **) &headers.array, &headers.used, &headers.size, &f_abstruse_maps_delete_callback);
-  f_memory_arrays_resize(0, sizeof(f_string_map_t), (void **) &destinations.array, &destinations.used, &destinations.size, &f_string_maps_delete_callback);
-  f_memory_arrays_resize(0, sizeof(f_string_map_t), (void **) &expects.array, &expects.used, &expects.size, &f_string_maps_delete_callback);
+    headers->array[headers->used].value.type = f_abstruse_string_e;
+    headers->array[headers->used].value.is.a_string = contents.array[i].string;
+  } // for
 }
 
 #ifdef __cplusplus
index cc19eba340ebb455b915ccddcc2ad1654e952f02..dcb7bed4638dbf530f26338e47b2fe6d91501872 100644 (file)
  */
 extern void test__fl_fss_payload_header_map__abstruse_string__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.
+ */
+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);
+
 #endif // _TEST__FL_fss_payload_header_map__abstruse_string_join_h
index 820b06211a97c0687b10b213e9f7d84844315849..93de46fddc1feda5d31d0516eb1b504f6241e609 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_uint16s__works_join(void **void_state) {
 
-  help_number__test_payload("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_at);
+  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);
 }
 
-void test__fl_fss_payload_header_map__abstruse_uint16s__join_load_contents_at(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) {
 
   f_uint16s_t * const is_a = &headers->array[0].value.is.a_u16s;
 
index 68209af231291c689eb97a801a1afced6acc73c2..116e06fdfc4c7de5e4a10469bc5163603d788937 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_uint16s__works_join(void *
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_uint16s__join_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_uint16s_join_h
index f1c084ad913a95dcb69238c55eac5928073b63f8..bd5bdcaf34d3b6936b11f5f8f32f4879a1d8361d 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_uint16s__works_split(void **void_state) {
 
-  help_number__test_payload("abstruse_uint16s", "split-abstruse_uint16s", 0, test__fl_fss_payload_header_map__abstruse_uint16s__split_load_contents_at);
+  help_payload__test("abstruse_uint16s", "split-abstruse_uint16s", 0, test__fl_fss_payload_header_map__abstruse_uint16s__split_load_contents);
 }
 
-void test__fl_fss_payload_header_map__abstruse_uint16s__split_load_contents_at(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) {
 
   f_uint16s_t * const is_a = &headers->array[0].value.is.a_u16s;
 
index 7cfeeebe3f780296fbddc738ae000c8c973fea0e..666c1b7fd2200bb795919ba454f74eac31cc510b 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_uint16s__works_split(void
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_uint16s__split_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_uint16s_split_h
index 6ba40486779496c763d10d0e93de6594f9e31f9b..485c36446c9f46b417c527bbb566e4b4cd0781aa 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_uint32s__works_join(void **void_state) {
 
-  help_number__test_payload("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_at);
+  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);
 }
 
-void test__fl_fss_payload_header_map__abstruse_uint32s__join_load_contents_at(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) {
 
   f_uint32s_t * const is_a = &headers->array[0].value.is.a_u32s;
 
index 87f8f8d29b2b137d7a88beefa1f95e1b89b0989b..cf841ede3b0ac64506128b02aeaddba85ecb0543 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_uint32s__works_join(void *
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_uint32s__join_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_uint32s_join_h
index 2316bbc8f8a15c6c83bdb1fdc52f6857ad81d86e..481d40b8c85cd04a81b6aeb85c0414b19358e652 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_uint32s__works_split(void **void_state) {
 
-  help_number__test_payload("abstruse_uint32s", "split-abstruse_uint32s", 0, test__fl_fss_payload_header_map__abstruse_uint32s__split_load_contents_at);
+  help_payload__test("abstruse_uint32s", "split-abstruse_uint32s", 0, test__fl_fss_payload_header_map__abstruse_uint32s__split_load_contents);
 }
 
-void test__fl_fss_payload_header_map__abstruse_uint32s__split_load_contents_at(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) {
 
   f_uint32s_t * const is_a = &headers->array[0].value.is.a_u32s;
 
index 958de22d965acfbe8afc24d0e6ef565ecc63ac70..1fe51067abaa16386e17c102de0ee25ca6030561 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_uint32s__works_split(void
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_uint32s__split_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_uint32s_split_h
index 628cc3e40f4d205f96638c5b31f8c1a5703dcfe1..73f100a3d8ae28f1031f8b712590745f9931d309 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_uint64s__works_join(void **void_state) {
 
-  help_number__test_payload("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_at);
+  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);
 }
 
-void test__fl_fss_payload_header_map__abstruse_uint64s__join_load_contents_at(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) {
 
   f_uint64s_t * const is_a = &headers->array[0].value.is.a_u64s;
 
index 8bef6392d3233e3085519358a6e94e647630b240..424f0649d03050e360b4cc8edc033feeb5e5a473 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_uint64s__works_join(void *
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_uint64s__join_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_uint64s_join_h
index 655434c4c60fbf8fc5481a82d587f7156f37ce54..3683896f14c9dde21d9949b96b9370277bb6dada 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_uint64s__works_split(void **void_state) {
 
-  help_number__test_payload("abstruse_uint64s", "split-abstruse_uint64s", 0, test__fl_fss_payload_header_map__abstruse_uint64s__split_load_contents_at);
+  help_payload__test("abstruse_uint64s", "split-abstruse_uint64s", 0, test__fl_fss_payload_header_map__abstruse_uint64s__split_load_contents);
 }
 
-void test__fl_fss_payload_header_map__abstruse_uint64s__split_load_contents_at(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) {
 
   f_uint64s_t * const is_a = &headers->array[0].value.is.a_u64s;
 
index dc063f747b74a0e38e41a7515fe5375212cc1987..02fbafc3732294c2d6847e40706f3f143aed9ad3 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_uint64s__works_split(void
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_uint64s__split_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_uint64s_split_h
index ff04243c673b6468db14c09ab97016f4ca22932f..f6a2a97ec84cb42b6242be30cf5f5635ec8cf814 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_uint8s__works_join(void **void_state) {
 
-  help_number__test_payload("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_at);
+  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);
 }
 
-void test__fl_fss_payload_header_map__abstruse_uint8s__join_load_contents_at(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) {
 
   f_uint8s_t * const is_a = &headers->array[0].value.is.a_u8s;
 
index 8339589b8b61bb64d65522b6b7b4a28e0f40c23e..2d47f69e8f643c6ec10ed031a59f1f30a45fb8ba 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_uint8s__works_join(void **
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_uint8s__join_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_uint8s_join_h
index 9a0b7966b593cd150713319d1f396e75a9ffc45b..d8d7113b4dcdf6515a6545019449c55451ab6632 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_uint8s__works_split(void **void_state) {
 
-  help_number__test_payload("abstruse_uint8s", "split-abstruse_uint8s", 0, test__fl_fss_payload_header_map__abstruse_uint8s__split_load_contents_at);
+  help_payload__test("abstruse_uint8s", "split-abstruse_uint8s", 0, test__fl_fss_payload_header_map__abstruse_uint8s__split_load_contents);
 }
 
-void test__fl_fss_payload_header_map__abstruse_uint8s__split_load_contents_at(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) {
 
   f_uint8s_t * const is_a = &headers->array[0].value.is.a_u8s;
 
index 7fe85cdcd122783e2fcd0a4924adc943596d748e..e04fd8afed704452a2bff8617f3ca18b720d63c5 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_uint8s__works_split(void *
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_uint8s__split_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_uint8s_split_h
index dae916ff70a16844e9606efb6c5d815460eb3470..adfb87d3d6fd74cc7a9dd57ae045acbb68a6bc16 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_unsigned__works_join(void **void_state) {
 
-  help_number__test_payload("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_at);
+  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);
 }
 
-void test__fl_fss_payload_header_map__abstruse_unsigned__join_load_contents_at(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) {
 
   for (f_number_unsigned_t i = 0; i < contents.used; ++i, ++headers->used) {
 
index cf0c5ef3c8c6e30bf3e654d7d10270cebe0b96b9..8c04f9571f5cefc09d7c764f1a829b91c7c8bfe0 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_unsigned__works_join(void
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_unsigned__join_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_unsigned_join_h
index 13ddc811057509ed9fb403e1f464de07f734a065..26b87431bd69063693be816b3220b0ae210fdaec 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_unsigneds__works_join(void **void_state) {
 
-  help_number__test_payload("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_at);
+  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);
 }
 
-void test__fl_fss_payload_header_map__abstruse_unsigneds__join_load_contents_at(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) {
 
   f_number_unsigneds_t * const is_a = &headers->array[0].value.is.a_unsigneds;
 
index 580477d64e5dc208475e180af5345cfb2ff80be9..7586d0e58e2659fc9d86fdc6d1dd294a270d7c8a 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_unsigneds__works_join(void
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_unsigneds__join_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_unsigneds_join_h
index a8be2d11fdb3b379507be3ddafe81aab6411fa8a..8c420a1e62f222e277e989537966e7096f44acb8 100644 (file)
@@ -6,10 +6,10 @@ extern "C" {
 
 void test__fl_fss_payload_header_map__abstruse_unsigneds__works_split(void **void_state) {
 
-  help_number__test_payload("abstruse_unsigneds", "split-abstruse_unsigneds", 0, test__fl_fss_payload_header_map__abstruse_unsigneds__split_load_contents_at);
+  help_payload__test("abstruse_unsigneds", "split-abstruse_unsigneds", 0, test__fl_fss_payload_header_map__abstruse_unsigneds__split_load_contents);
 }
 
-void test__fl_fss_payload_header_map__abstruse_unsigneds__split_load_contents_at(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) {
 
   f_number_unsigneds_t * const is_a = &headers->array[0].value.is.a_unsigneds;
 
index bd431cf0df27f18b5c72a53a491348c4c2a49a02..2b3b3f26816b6fc1355ad7783fb47eb02a546d54 100644 (file)
@@ -29,6 +29,6 @@ extern void test__fl_fss_payload_header_map__abstruse_unsigneds__works_split(voi
  * @param state
  *   The state parameter.
  */
-void test__fl_fss_payload_header_map__abstruse_unsigneds__split_load_contents_at(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);
 
 #endif // _TEST__FL_fss_payload_header_map__abstruse_unsigneds_split_h
index d0e0e5ada01ea9249de7bbddb01500e4f56c9741..53b443a16f9d80208cca860b9fbd9ddba8547e97 100644 (file)
@@ -38,7 +38,7 @@
 // Data includes.
 #include "data-fss.h"
 #include "help-fss.h"
-#include "help-fss-number.h"
+#include "help-fss-payload.h"
 
 // Test includes.
 #include "test-fss-basic_content_read.h"