This adds only the parameter checking and the F_data_not return checking unit tests.
build_libraries -lc -lcmocka
build_libraries-individual -lf_abstruse -lf_conversion -lf_file -lf_fss -lf_memory -lf_string -lf_type_array -lf_utf -lfl_fss
+build_sources_program test-fss-basic_content_read.c test-fss-basic_content_write.c test-fss-basic_object_read.c test-fss-basic_object_write.c
+build_sources_program test-fss-basic_list_content_read.c test-fss-basic_list_content_write.c test-fss-basic_list_object_read.c test-fss-basic_list_object_write.c
+build_sources_program test-fss-embedded_list_content_read.c test-fss-embedded_list_content_write.c test-fss-embedded_list_object_read.c test-fss-embedded_list_object_write.c
+build_sources_program test-fss-extended_content_read.c test-fss-extended_content_write.c test-fss-extended_object_read.c test-fss-extended_object_write.c
+build_sources_program test-fss-extended_list_content_read.c test-fss-extended_list_content_write.c test-fss-extended_list_object_read.c test-fss-extended_list_object_write.c
build_sources_program test-fss-payload_header_map.c
build_sources_program test-fss.c
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-basic_content_read.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_basic_content_read__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_ranges_t found = f_ranges_t_initialize;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_content_read(f_string_empty_s, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_content_read(f_string_empty_s, &range, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_content_read(f_string_empty_s, &range, &found, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_content_read(f_string_empty_s, &range, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_content_read(f_string_empty_s, 0, &found, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_content_read(f_string_empty_s, 0, &found, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_content_read(f_string_empty_s, 0, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+}
+
+void test__fl_fss_basic_content_read__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_ranges_t found = f_ranges_t_initialize;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_content_read(f_string_empty_s, &range, &found, &delimits, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_basic_content_read_h
+#define _TEST__FL_fss_basic_content_read_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_basic_content_read()
+ */
+extern void test__fl_fss_basic_content_read__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_basic_content_read()
+ */
+extern void test__fl_fss_basic_content_read__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_basic_content_read_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-basic_content_write.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_basic_content_write__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_content_write(f_string_empty_s, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_content_write(f_string_empty_s, 0, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_content_write(f_string_empty_s, 0, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+void test__fl_fss_basic_content_write__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_content_write(f_string_empty_s, 0, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_basic_content_write_h
+#define _TEST__FL_fss_basic_content_write_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_basic_content_write()
+ */
+extern void test__fl_fss_basic_content_write__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_basic_content_write()
+ */
+extern void test__fl_fss_basic_content_write__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_basic_content_write_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-basic_list_content_read.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_basic_list_content_read__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_ranges_t found = f_ranges_t_initialize;
+ f_ranges_t comments = f_ranges_t_initialize;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_read(f_string_empty_s, 0, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_read(f_string_empty_s, &range, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_read(f_string_empty_s, &range, &found, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_read(f_string_empty_s, &range, 0, &delimits, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_read(f_string_empty_s, &range, 0, 0, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_read(f_string_empty_s, 0, &found, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_read(f_string_empty_s, 0, &found, &delimits, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_read(f_string_empty_s, 0, &found, 0, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_read(f_string_empty_s, 0, 0, &delimits, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_read(f_string_empty_s, 0, 0, &delimits, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_read(f_string_empty_s, 0, 0, 0, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+}
+
+void test__fl_fss_basic_list_content_read__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_ranges_t found = f_ranges_t_initialize;
+ f_ranges_t comments = f_ranges_t_initialize;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_read(f_string_empty_s, &range, &found, &delimits, &comments, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_basic_list_content_read_list_h
+#define _TEST__FL_fss_basic_list_content_read_list_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_basic_list_content_read()
+ */
+extern void test__fl_fss_basic_list_content_read__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_basic_list_content_read()
+ */
+extern void test__fl_fss_basic_list_content_read__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_basic_list_content_read_list_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-basic_list_content_write.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_basic_list_content_write__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_write(f_string_empty_s, 0, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_write(f_string_empty_s, 0, &f_string_empty_s, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_write(f_string_empty_s, 0, &f_string_empty_s, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_write(f_string_empty_s, 0, &f_string_empty_s, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_write(f_string_empty_s, 0, 0, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_write(f_string_empty_s, 0, 0, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_write(f_string_empty_s, 0, &f_string_empty_s, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+void test__fl_fss_basic_list_content_write__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_write(f_string_empty_s, 0, 0, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_content_write(f_string_empty_s, 0, &f_string_empty_s, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_basic_list_content_write_list_h
+#define _TEST__FL_fss_basic_list_content_write_list_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_basic_list_content_write()
+ */
+extern void test__fl_fss_basic_list_content_write__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_basic_list_content_write()
+ */
+extern void test__fl_fss_basic_list_content_write__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_basic_list_content_write_list_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-basic_list_object_read.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_basic_list_object_read__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_range_t found = f_range_t_initialize;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_object_read(f_string_empty_s, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_object_read(f_string_empty_s, &range, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_object_read(f_string_empty_s, &range, &found, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_object_read(f_string_empty_s, &range, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_object_read(f_string_empty_s, 0, &found, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_object_read(f_string_empty_s, 0, &found, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_object_read(f_string_empty_s, 0, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+}
+
+void test__fl_fss_basic_list_object_read__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_range_t found = f_range_t_initialize;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_object_read(f_string_empty_s, &range, &found, &delimits, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_basic_list_object_read_list_h
+#define _TEST__FL_fss_basic_list_object_read_list_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_basic_list_object_read()
+ */
+extern void test__fl_fss_basic_list_object_read__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_basic_list_object_read()
+ */
+extern void test__fl_fss_basic_list_object_read__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_basic_list_object_read_list_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-basic_list_object_write.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_basic_list_object_write__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_object_write(f_string_empty_s, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_object_write(f_string_empty_s, 0, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_object_write(f_string_empty_s, 0, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+void test__fl_fss_basic_list_object_write__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_list_object_write(f_string_empty_s, 0, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_basic_list_object_write_list_h
+#define _TEST__FL_fss_basic_list_object_write_list_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_basic_list_object_write()
+ */
+extern void test__fl_fss_basic_list_object_write__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_basic_list_object_write()
+ */
+extern void test__fl_fss_basic_list_object_write__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_basic_list_object_write_list_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-basic_object_read.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_basic_object_read__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_range_t found = f_range_t_initialize;
+ uint8_t quote = 0;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_read(f_string_empty_s, 0, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_read(f_string_empty_s, &range, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_read(f_string_empty_s, &range, &found, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_read(f_string_empty_s, &range, &found, "e, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_read(f_string_empty_s, &range, 0, "e, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_read(f_string_empty_s, &range, 0, "e, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_read(f_string_empty_s, &range, 0, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_read(f_string_empty_s, 0, &found, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_read(f_string_empty_s, 0, &found, "e, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_read(f_string_empty_s, 0, &found, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_read(f_string_empty_s, 0, 0, "e, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_read(f_string_empty_s, 0, 0, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+}
+
+void test__fl_fss_basic_object_read__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_range_t found = f_range_t_initialize;
+ uint8_t quote = 0;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_read(f_string_empty_s, &range, &found, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_read(f_string_empty_s, &range, &found, "e, &delimits, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_basic_object_read_h
+#define _TEST__FL_fss_basic_object_read_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_basic_object_read()
+ */
+extern void test__fl_fss_basic_object_read__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_basic_object_read()
+ */
+extern void test__fl_fss_basic_object_read__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_basic_object_read_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-basic_object_write.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_basic_object_write__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_write(f_string_empty_s, 0, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_write(f_string_empty_s, 0, 0, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_write(f_string_empty_s, 0, 0, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+void test__fl_fss_basic_object_write__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_basic_object_write(f_string_empty_s, 0, 0, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_basic_object_write_h
+#define _TEST__FL_fss_basic_object_write_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_basic_object_write()
+ */
+extern void test__fl_fss_basic_object_write__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_basic_object_write()
+ */
+extern void test__fl_fss_basic_object_write__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_basic_object_write_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-embedded_list_content_read.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_embedded_list_content_read__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_fss_nest_t found = f_fss_nest_t_initialize;
+ f_ranges_t comments = f_ranges_t_initialize;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_read(f_string_empty_s, 0, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_read(f_string_empty_s, &range, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_read(f_string_empty_s, &range, &found, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_read(f_string_empty_s, &range, 0, &delimits, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_read(f_string_empty_s, &range, 0, 0, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_read(f_string_empty_s, 0, &found, &delimits, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_read(f_string_empty_s, 0, &found, 0, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_read(f_string_empty_s, 0, &found, &delimits, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_read(f_string_empty_s, 0, &found, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_read(f_string_empty_s, 0, &found, 0, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_read(f_string_empty_s, 0, 0, &delimits, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_read(f_string_empty_s, 0, 0, &delimits, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_read(f_string_empty_s, 0, 0, 0, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+}
+
+void test__fl_fss_embedded_list_content_read__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_fss_nest_t found = f_fss_nest_t_initialize;
+ f_ranges_t comments = f_ranges_t_initialize;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_read(f_string_empty_s, &range, &found, &delimits, &comments, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_embedded_list_content_read_h
+#define _TEST__FL_fss_embedded_list_content_read_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_embedded_list_content_read()
+ */
+extern void test__fl_fss_embedded_list_content_read__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_embedded_list_content_read()
+ */
+extern void test__fl_fss_embedded_list_content_read__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_embedded_list_content_read_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-embedded_list_content_write.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_embedded_list_content_write__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_ranges_t ignore = f_ranges_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_write(f_string_empty_s, 0, 0, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_write(f_string_empty_s, 0, &f_string_empty_s, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_write(f_string_empty_s, 0, &f_string_empty_s, &ignore, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_write(f_string_empty_s, 0, &f_string_empty_s, &ignore, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_write(f_string_empty_s, 0, &f_string_empty_s, &ignore, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_write(f_string_empty_s, 0, &f_string_empty_s, 0, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_write(f_string_empty_s, 0, &f_string_empty_s, 0, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_write(f_string_empty_s, 0, 0, &ignore, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_write(f_string_empty_s, 0, 0, &ignore, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_write(f_string_empty_s, 0, 0, &ignore, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_write(f_string_empty_s, 0, 0, 0, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_write(f_string_empty_s, 0, 0, 0, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+void test__fl_fss_embedded_list_content_write__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_ranges_t ignore = f_ranges_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_write(f_string_empty_s, 0, 0, 0, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_write(f_string_empty_s, 0, 0, &ignore, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_write(f_string_empty_s, 0, &f_string_empty_s, 0, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_content_write(f_string_empty_s, 0, &f_string_empty_s, &ignore, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_embedded_list_content_write_h
+#define _TEST__FL_fss_embedded_list_content_write_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_embedded_list_content_write()
+ */
+extern void test__fl_fss_embedded_list_content_write__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_embedded_list_content_write()
+ */
+extern void test__fl_fss_embedded_list_content_write__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_embedded_list_content_write_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-embedded_list_object_read.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_embedded_list_object_read__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_range_t found = f_range_t_initialize;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_object_read(f_string_empty_s, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_object_read(f_string_empty_s, &range, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_object_read(f_string_empty_s, &range, &found, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_object_read(f_string_empty_s, &range, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_object_read(f_string_empty_s, 0, &found, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_object_read(f_string_empty_s, 0, &found, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_object_read(f_string_empty_s, 0, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+}
+
+void test__fl_fss_embedded_list_object_read__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_range_t found = f_range_t_initialize;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_object_read(f_string_empty_s, &range, &found, &delimits, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_embedded_list_object_read_h
+#define _TEST__FL_fss_embedded_list_object_read_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_embedded_list_object_read()
+ */
+extern void test__fl_fss_embedded_list_object_read__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_embedded_list_object_read()
+ */
+extern void test__fl_fss_embedded_list_object_read__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_embedded_list_object_read_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-embedded_list_object_write.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_embedded_list_object_write__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_object_write(f_string_empty_s, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_object_write(f_string_empty_s, 0, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_object_write(f_string_empty_s, 0, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+void test__fl_fss_embedded_list_object_write__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_embedded_list_object_write(f_string_empty_s, 0, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_embedded_list_object_write_h
+#define _TEST__FL_fss_embedded_list_object_write_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_embedded_list_object_write()
+ */
+extern void test__fl_fss_embedded_list_object_write__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_embedded_list_object_write()
+ */
+extern void test__fl_fss_embedded_list_object_write__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_embedded_list_object_write_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-extended_content_read.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_extended_content_read__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_ranges_t found = f_ranges_t_initialize;
+ f_uint8s_t quotes = f_uint8s_t_initialize;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_read(f_string_empty_s, 0, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_read(f_string_empty_s, &range, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_read(f_string_empty_s, &range, &found, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_read(f_string_empty_s, &range, 0, "es, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_read(f_string_empty_s, &range, 0, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_read(f_string_empty_s, &range, &found, "es, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_read(f_string_empty_s, &range, &found, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_read(f_string_empty_s, 0, &found, "es, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_read(f_string_empty_s, 0, &found, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_read(f_string_empty_s, 0, 0, "es, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_read(f_string_empty_s, 0, 0, "es, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_read(f_string_empty_s, 0, 0, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+}
+
+void test__fl_fss_extended_content_read__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_ranges_t found = f_ranges_t_initialize;
+ f_uint8s_t quotes = f_uint8s_t_initialize;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_read(f_string_empty_s, &range, &found, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_read(f_string_empty_s, &range, &found, "es, &delimits, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_extended_content_read_h
+#define _TEST__FL_fss_extended_content_read_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_extended_content_read()
+ */
+extern void test__fl_fss_extended_content_read__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_extended_content_read()
+ */
+extern void test__fl_fss_extended_content_read__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_extended_content_read_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-extended_content_write.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_extended_content_write__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_write(f_string_empty_s, 0, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_write(f_string_empty_s, 0, 0, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_write(f_string_empty_s, 0, 0, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+void test__fl_fss_extended_content_write__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_content_write(f_string_empty_s, 0, 0, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_extended_content_write_h
+#define _TEST__FL_fss_extended_content_write_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_extended_content_write()
+ */
+extern void test__fl_fss_extended_content_write__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_extended_content_write()
+ */
+extern void test__fl_fss_extended_content_write__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_extended_content_write_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-extended_list_content_read.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_extended_list_content_read__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_ranges_t found = f_ranges_t_initialize;
+ f_ranges_t comments = f_ranges_t_initialize;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_read(f_string_empty_s, 0, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_read(f_string_empty_s, &range, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_read(f_string_empty_s, &range, &found, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_read(f_string_empty_s, &range, &found, &delimits, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_read(f_string_empty_s, &range, &found, 0, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_read(f_string_empty_s, &range, 0, &delimits, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_read(f_string_empty_s, &range, 0, &delimits, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_read(f_string_empty_s, &range, 0, 0, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_read(f_string_empty_s, 0, &found, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_read(f_string_empty_s, 0, &found, &delimits, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_read(f_string_empty_s, 0, &found, 0, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_read(f_string_empty_s, 0, &found, &delimits, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_read(f_string_empty_s, 0, 0, &delimits, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_read(f_string_empty_s, 0, 0, &delimits, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_read(f_string_empty_s, 0, 0, 0, &comments, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+}
+
+void test__fl_fss_extended_list_content_read__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_ranges_t found = f_ranges_t_initialize;
+ f_ranges_t comments = f_ranges_t_initialize;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_read(f_string_empty_s, &range, &found, &delimits, &comments, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_extended_list_content_read_list_h
+#define _TEST__FL_fss_extended_list_content_read_list_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_extended_list_content_read()
+ */
+extern void test__fl_fss_extended_list_content_read__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_extended_list_content_read()
+ */
+extern void test__fl_fss_extended_list_content_read__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_extended_list_content_read_list_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-extended_list_content_write.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_extended_list_content_write__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_ranges_t ignore = f_ranges_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_write(f_string_empty_s, 0, 0, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_write(f_string_empty_s, 0, &f_string_empty_s, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_write(f_string_empty_s, 0, &f_string_empty_s, &ignore, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_write(f_string_empty_s, 0, &f_string_empty_s, &ignore, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_write(f_string_empty_s, 0, &f_string_empty_s, &ignore, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_write(f_string_empty_s, 0, &f_string_empty_s, 0, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_write(f_string_empty_s, 0, &f_string_empty_s, 0, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_write(f_string_empty_s, 0, 0, &ignore, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_write(f_string_empty_s, 0, 0, &ignore, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_write(f_string_empty_s, 0, 0, &ignore, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_write(f_string_empty_s, 0, 0, 0, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_write(f_string_empty_s, 0, 0, 0, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+void test__fl_fss_extended_list_content_write__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_ranges_t ignore = f_ranges_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_write(f_string_empty_s, 0, 0, 0, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_write(f_string_empty_s, 0, &f_string_empty_s, 0, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_write(f_string_empty_s, 0, 0, &ignore, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_content_write(f_string_empty_s, 0, &f_string_empty_s, &ignore, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_extended_list_content_write_list_h
+#define _TEST__FL_fss_extended_list_content_write_list_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_extended_list_content_write()
+ */
+extern void test__fl_fss_extended_list_content_write__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_extended_list_content_write()
+ */
+extern void test__fl_fss_extended_list_content_write__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_extended_list_content_write_list_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-extended_list_object_read.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_extended_list_object_read__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_range_t found = f_range_t_initialize;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_object_read(f_string_empty_s, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_object_read(f_string_empty_s, &range, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_object_read(f_string_empty_s, &range, &found, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_object_read(f_string_empty_s, &range, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_object_read(f_string_empty_s, 0, &found, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_object_read(f_string_empty_s, 0, &found, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_object_read(f_string_empty_s, 0, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+}
+
+void test__fl_fss_extended_list_object_read__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_range_t found = f_range_t_initialize;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_object_read(f_string_empty_s, &range, &found, &delimits, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_extended_list_object_read_list_h
+#define _TEST__FL_fss_extended_list_object_read_list_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_extended_list_object_read()
+ */
+extern void test__fl_fss_extended_list_object_read__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_extended_list_object_read()
+ */
+extern void test__fl_fss_extended_list_object_read__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_extended_list_object_read_list_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-extended_list_object_write.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_extended_list_object_write__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_object_write(f_string_empty_s, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_object_write(f_string_empty_s, 0, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_object_write(f_string_empty_s, 0, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+void test__fl_fss_extended_list_object_write__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_list_object_write(f_string_empty_s, 0, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_extended_list_object_write_list_h
+#define _TEST__FL_fss_extended_list_object_write_list_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_extended_list_object_write()
+ */
+extern void test__fl_fss_extended_list_object_write__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_extended_list_object_write()
+ */
+extern void test__fl_fss_extended_list_object_write__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_extended_list_object_write_list_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-extended_object_read.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_extended_object_read__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_range_t found = f_range_t_initialize;
+ uint8_t quote = 0;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_read(f_string_empty_s, 0, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_read(f_string_empty_s, &range, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_read(f_string_empty_s, &range, &found, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_read(f_string_empty_s, &range, &found, "e, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_read(f_string_empty_s, &range, 0, "e, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_read(f_string_empty_s, &range, 0, "e, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_read(f_string_empty_s, &range, 0, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_read(f_string_empty_s, 0, &found, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_read(f_string_empty_s, 0, &found, "e, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_read(f_string_empty_s, 0, &found, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_read(f_string_empty_s, 0, &found, "e, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_read(f_string_empty_s, 0, 0, "e, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_read(f_string_empty_s, 0, 0, "e, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_read(f_string_empty_s, 0, 0, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+}
+
+void test__fl_fss_extended_object_read__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_range_t found = f_range_t_initialize;
+ uint8_t quote = 0;
+ f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_read(f_string_empty_s, &range, &found, 0, &delimits, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_read(f_string_empty_s, &range, &found, "e, &delimits, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_extended_object_read_h
+#define _TEST__FL_fss_extended_object_read_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_extended_object_read()
+ */
+extern void test__fl_fss_extended_object_read__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_extended_object_read()
+ */
+extern void test__fl_fss_extended_object_read__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_extended_object_read_h
--- /dev/null
+#include "test-fss.h"
+#include "test-fss-extended_object_write.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__fl_fss_extended_object_write__parameter_checking(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_write(f_string_empty_s, 0, 0, 0, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_write(f_string_empty_s, 0, 0, &range, 0, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_write(f_string_empty_s, 0, 0, 0, &destination, &state);
+
+ assert_int_equal(state.status, F_status_set_error(F_parameter));
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+void test__fl_fss_extended_object_write__returns_data_not(void **void_state) {
+
+ f_state_t state = f_state_t_initialize;
+ f_range_t range = f_range_t_initialize;
+ f_string_dynamic_t destination = f_string_dynamic_t_initialize;
+
+ {
+ state.status = F_none;
+
+ fl_fss_extended_object_write(f_string_empty_s, 0, 0, &range, &destination, &state);
+
+ assert_int_equal(state.status, F_data_not);
+ }
+
+ if (destination.string) {
+ free(destination.string);
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 2
+ *
+ * Project: FSS
+ * API Version: 0.6
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the fl_fss project.
+ */
+#ifndef _TEST__FL_fss_extended_object_write_h
+#define _TEST__FL_fss_extended_object_write_h
+
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see fl_fss_extended_object_write()
+ */
+extern void test__fl_fss_extended_object_write__parameter_checking(void **state);
+
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see fl_fss_extended_object_write()
+ */
+extern void test__fl_fss_extended_object_write__returns_data_not(void **state);
+
+#endif // _TEST__FL_fss_extended_object_write_h
/**
* FLL - Level 2
*
- * Project: IKI
+ * Project: FSS
* API Version: 0.6
* Licenses: lgpl-2.1-or-later
*
*/
extern void test__fl_fss_payload_header_map__returns_data_not(void **state);
-
#endif // _TEST__FL_fss_payload_header_map_h
int main(void) {
const struct CMUnitTest tests[] = {
+ cmocka_unit_test(test__fl_fss_basic_content_read__returns_data_not),
+ cmocka_unit_test(test__fl_fss_basic_content_write__returns_data_not),
+ cmocka_unit_test(test__fl_fss_basic_object_read__returns_data_not),
+ cmocka_unit_test(test__fl_fss_basic_object_write__returns_data_not),
+
+ cmocka_unit_test(test__fl_fss_basic_list_content_read__returns_data_not),
+ cmocka_unit_test(test__fl_fss_basic_list_content_write__returns_data_not),
+ cmocka_unit_test(test__fl_fss_basic_list_object_read__returns_data_not),
+ cmocka_unit_test(test__fl_fss_basic_list_object_write__returns_data_not),
+
+ cmocka_unit_test(test__fl_fss_embedded_list_content_read__returns_data_not),
+ cmocka_unit_test(test__fl_fss_embedded_list_content_write__returns_data_not),
+ cmocka_unit_test(test__fl_fss_embedded_list_object_read__returns_data_not),
+ cmocka_unit_test(test__fl_fss_embedded_list_object_write__returns_data_not),
+
+ cmocka_unit_test(test__fl_fss_extended_content_read__returns_data_not),
+ cmocka_unit_test(test__fl_fss_extended_content_write__returns_data_not),
+ cmocka_unit_test(test__fl_fss_extended_object_read__returns_data_not),
+ cmocka_unit_test(test__fl_fss_extended_object_write__returns_data_not),
+
+ cmocka_unit_test(test__fl_fss_extended_list_content_read__returns_data_not),
+ cmocka_unit_test(test__fl_fss_extended_list_content_write__returns_data_not),
+ cmocka_unit_test(test__fl_fss_extended_list_object_read__returns_data_not),
+ cmocka_unit_test(test__fl_fss_extended_list_object_write__returns_data_not),
+
cmocka_unit_test(test__fl_fss_payload_header_map__returns_data_not),
#ifndef _di_level_0_parameter_checking_
+ cmocka_unit_test(test__fl_fss_basic_content_read__parameter_checking),
+ cmocka_unit_test(test__fl_fss_basic_content_write__parameter_checking),
+ cmocka_unit_test(test__fl_fss_basic_object_read__parameter_checking),
+ cmocka_unit_test(test__fl_fss_basic_object_write__parameter_checking),
+
+ cmocka_unit_test(test__fl_fss_basic_list_content_read__parameter_checking),
+ cmocka_unit_test(test__fl_fss_basic_list_content_write__parameter_checking),
+ cmocka_unit_test(test__fl_fss_basic_list_object_read__parameter_checking),
+ cmocka_unit_test(test__fl_fss_basic_list_object_write__parameter_checking),
+
+ cmocka_unit_test(test__fl_fss_embedded_list_content_read__parameter_checking),
+ cmocka_unit_test(test__fl_fss_embedded_list_content_write__parameter_checking),
+ cmocka_unit_test(test__fl_fss_embedded_list_object_read__parameter_checking),
+ cmocka_unit_test(test__fl_fss_embedded_list_object_write__parameter_checking),
+
+ cmocka_unit_test(test__fl_fss_extended_content_read__parameter_checking),
+ cmocka_unit_test(test__fl_fss_extended_content_write__parameter_checking),
+ cmocka_unit_test(test__fl_fss_extended_object_read__parameter_checking),
+ cmocka_unit_test(test__fl_fss_extended_object_write__parameter_checking),
+
+ cmocka_unit_test(test__fl_fss_extended_list_content_read__parameter_checking),
+ cmocka_unit_test(test__fl_fss_extended_list_content_write__parameter_checking),
+ cmocka_unit_test(test__fl_fss_extended_list_object_read__parameter_checking),
+ cmocka_unit_test(test__fl_fss_extended_list_object_write__parameter_checking),
+
cmocka_unit_test(test__fl_fss_payload_header_map__parameter_checking),
#endif // _di_level_0_parameter_checking_
};
// FLL-1 includes.
#include <fll/level_1/fss.h>
+#include <fll/level_1/fss/basic.h>
+#include <fll/level_1/fss/basic_list.h>
+#include <fll/level_1/fss/embedded_list.h>
+#include <fll/level_1/fss/extended.h>
+#include <fll/level_1/fss/extended_list.h>
#include <fll/level_1/fss/payload.h>
// Mock includes.
//#include "mock-fss.h"
// Test includes.
+#include "test-fss-basic_content_read.h"
+#include "test-fss-basic_content_write.h"
+#include "test-fss-basic_object_read.h"
+#include "test-fss-basic_object_write.h"
+#include "test-fss-basic_list_content_read.h"
+#include "test-fss-basic_list_content_write.h"
+#include "test-fss-basic_list_object_read.h"
+#include "test-fss-basic_list_object_write.h"
+#include "test-fss-embedded_list_content_read.h"
+#include "test-fss-embedded_list_content_write.h"
+#include "test-fss-embedded_list_object_read.h"
+#include "test-fss-embedded_list_object_write.h"
+#include "test-fss-extended_content_read.h"
+#include "test-fss-extended_content_write.h"
+#include "test-fss-extended_object_read.h"
+#include "test-fss-extended_object_write.h"
+#include "test-fss-extended_list_content_read.h"
+#include "test-fss-extended_list_content_write.h"
+#include "test-fss-extended_list_object_read.h"
+#include "test-fss-extended_list_object_write.h"
#include "test-fss-payload_header_map.h"
#ifdef __cplusplus