extern "C" {
#endif
+#ifndef _di_level_0_parameter_checking_
+ void test__f_memory_adjust__parameter_checking(void **state) {
+
+ {
+ const f_status_t status = f_memory_adjust(1, 4, 0, 0);
+
+ assert_int_equal(F_status_set_fine(status), F_parameter);
+ }
+
+ {
+ const f_status_t status = f_memory_adjust(1, 4, 1, 0);
+
+ assert_int_equal(F_status_set_fine(status), F_parameter);
+ }
+ }
+#endif // _di_level_0_parameter_checking_
+
void test__f_memory_adjust__works(void **state) {
uint16_t *data = 0;
#define _TEST__F_memory__adjust
/**
+ * Test that parameter checking works as expected.
+ *
+ * @see f_memory_adjust()
+ */
+#ifndef _di_level_0_parameter_checking_
+ extern void test__f_memory_adjust__parameter_checking(void **state);
+#endif // _di_level_0_parameter_checking_
+
+/**
* Test that reallocation works.
*
* @see f_memory_new()
}
}
+#ifndef _di_level_0_parameter_checking_
+ void test__f_memory_delete__parameter_checking(void **state) {
+
+ {
+ const f_status_t status = f_memory_delete(4, 0, 0);
+
+ assert_int_equal(F_status_set_fine(status), F_parameter);
+ }
+ }
+#endif // _di_level_0_parameter_checking_
+
#ifdef __cplusplus
} // extern "C"
#endif
*/
extern void test__f_memory_delete__frees_resized_memory(void **state);
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see f_memory_delete()
+ */
+#ifndef _di_level_0_parameter_checking_
+ extern void test__f_memory_delete__parameter_checking(void **state);
+#endif // _di_level_0_parameter_checking_
+
#endif // _TEST__F_memory__delete
}
}
+#ifndef _di_level_0_parameter_checking_
+ void test__f_memory_destroy__parameter_checking(void **state) {
+
+ {
+ const f_status_t status = f_memory_destroy(4, 0, 0);
+
+ assert_int_equal(F_status_set_fine(status), F_parameter);
+ }
+ }
+#endif // _di_level_0_parameter_checking_
+
#ifdef __cplusplus
} // extern "C"
#endif
*/
extern void test__f_memory_destroy__frees_resized_memory(void **state);
+/**
+ * Test that parameter checking works as expected.
+ *
+ * @see f_memory_destroy()
+ */
+#ifndef _di_level_0_parameter_checking_
+ extern void test__f_memory_destroy__parameter_checking(void **state);
+#endif // _di_level_0_parameter_checking_
+
#endif // _TEST__F_memory__destroy
extern "C" {
#endif
+#ifndef _di_level_0_parameter_checking_
+ void test__f_memory_new__parameter_checking(void **state) {
+
+ {
+ const f_status_t status = f_memory_new(1, 0, 0);
+
+ assert_int_equal(F_status_set_fine(status), F_parameter);
+ }
+ }
+#endif // _di_level_0_parameter_checking_
+
void test__f_memory_new__works(void **state) {
uint16_t *data = 0;
#define _TEST__F_memory__new
/**
+ * Test that parameter checking works as expected.
+ *
+ * @see f_memory_new()
+ */
+#ifndef _di_level_0_parameter_checking_
+ extern void test__f_memory_new__parameter_checking(void **state);
+#endif // _di_level_0_parameter_checking_
+
+/**
* Test that allocation works.
*
* @see f_memory_new()
extern "C" {
#endif
+#ifndef _di_level_0_parameter_checking_
+ void test__f_memory_new_aligned__parameter_checking(void **state) {
+
+ {
+ const f_status_t status = f_memory_new_aligned(1, 0, 0);
+
+ assert_int_equal(F_status_set_fine(status), F_parameter);
+ }
+ }
+#endif // _di_level_0_parameter_checking_
+
void test__f_memory_new_aligned__works(void **state) {
uint16_t *data = 0;
#define _TEST__F_memory__new_aligned
/**
+ * Test that parameter checking works as expected.
+ *
+ * @see f_memory_new_aligned()
+ */
+#ifndef _di_level_0_parameter_checking_
+ extern void test__f_memory_new_aligned__parameter_checking(void **state);
+#endif // _di_level_0_parameter_checking_
+
+/**
* Test that allocation works.
*
* @see f_memory_new_aligned()
extern "C" {
#endif
+#ifndef _di_level_0_parameter_checking_
+ void test__f_memory_resize__parameter_checking(void **state) {
+
+ {
+ const f_status_t status = f_memory_resize(1, 4, 0, 0);
+
+ assert_int_equal(F_status_set_fine(status), F_parameter);
+ }
+
+ {
+ const f_status_t status = f_memory_resize(1, 4, 1, 0);
+
+ assert_int_equal(F_status_set_fine(status), F_parameter);
+ }
+ }
+#endif // _di_level_0_parameter_checking_
+
void test__f_memory_resize__works(void **state) {
uint16_t *data = 0;
#define _TEST__F_memory__resize
/**
+ * Test that parameter checking works as expected.
+ *
+ * @see f_memory_resize()
+ */
+#ifndef _di_level_0_parameter_checking_
+ extern void test__f_memory_resize__parameter_checking(void **state);
+#endif // _di_level_0_parameter_checking_
+
+/**
* Test that reallocation works.
*
* @see f_memory_new()
cmocka_unit_test(test__f_memory_new_aligned__works),
cmocka_unit_test(test__f_memory_resize__works),
+
+ #ifndef _di_level_0_parameter_checking_
+ cmocka_unit_test(test__f_memory_adjust__parameter_checking),
+ cmocka_unit_test(test__f_memory_delete__parameter_checking),
+ cmocka_unit_test(test__f_memory_destroy__parameter_checking),
+ cmocka_unit_test(test__f_memory_new__parameter_checking),
+ cmocka_unit_test(test__f_memory_resize__parameter_checking),
+ #endif // _di_level_0_parameter_checking_
};
return cmocka_run_group_tests(tests, setup, setdown);