The tests do not really matter when it comes to file size.
Simplify the test code by not using these macros.
These macros are still used to perform the call.
They just do not need to be around the function definitions.
macro_f_account_t_delete_simple(account);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_account_by_id__parameter_checking(void **state) {
+void test__f_account_by_id__parameter_checking(void **state) {
- {
- const f_status_t status = f_account_by_id(0, 0);
+ {
+ const f_status_t status = f_account_by_id(0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_account_by_id__works(void **state) {
*
* @see f_account_by_id()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_account_by_id__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_account_by_id__parameter_checking(void **state);
/**
* Test that function works.
macro_f_account_t_delete_simple(account);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_account_by_name__parameter_checking(void **state) {
+void test__f_account_by_name__parameter_checking(void **state) {
- const f_string_static_t name = f_string_static_t_initialize;
+ const f_string_static_t name = f_string_static_t_initialize;
- {
- const f_status_t status = f_account_by_name(name, 0);
+ {
+ const f_status_t status = f_account_by_name(name, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_account_by_name__works(void **state) {
*
* @see f_account_by_name()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_account_by_name__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_account_by_name__parameter_checking(void **state);
/**
* Test that function works.
}
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_account_group_id_by_name__parameter_checking(void **state) {
+void test__f_account_group_id_by_name__parameter_checking(void **state) {
- const f_string_static_t name = f_string_static_t_initialize;
+ const f_string_static_t name = f_string_static_t_initialize;
- {
- const f_status_t status = f_account_group_id_by_name(name, 0);
+ {
+ const f_status_t status = f_account_group_id_by_name(name, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_account_group_id_by_name__works(void **state) {
*
* @see f_account_group_id_by_name()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_account_group_id_by_name__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_account_group_id_by_name__parameter_checking(void **state);
/**
* Test that function works.
f_string_dynamic_resize(0, &name);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_account_group_name_by_id__parameter_checking(void **state) {
+void test__f_account_group_name_by_id__parameter_checking(void **state) {
- {
- const f_status_t status = f_account_group_name_by_id(0, 0);
+ {
+ const f_status_t status = f_account_group_name_by_id(0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_account_group_name_by_id__works(void **state) {
*
* @see f_account_group_name_by_id()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_account_group_name_by_id__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_account_group_name_by_id__parameter_checking(void **state);
/**
* Test that function works.
}
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_account_id_by_name__parameter_checking(void **state) {
+void test__f_account_id_by_name__parameter_checking(void **state) {
- const f_string_static_t name = f_string_static_t_initialize;
+ const f_string_static_t name = f_string_static_t_initialize;
- {
- const f_status_t status = f_account_id_by_name(name, 0);
+ {
+ const f_status_t status = f_account_id_by_name(name, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_account_id_by_name__works(void **state) {
*
* @see f_account_id_by_name()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_account_id_by_name__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_account_id_by_name__parameter_checking(void **state);
/**
* Test that function works.
f_string_dynamic_resize(0, &name);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_account_name_by_id__parameter_checking(void **state) {
+void test__f_account_name_by_id__parameter_checking(void **state) {
- {
- const f_status_t status = f_account_name_by_id(0, 0);
+ {
+ const f_status_t status = f_account_name_by_id(0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_account_name_by_id__works(void **state) {
*
* @see f_account_name_by_id()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_account_name_by_id__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_account_name_by_id__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_) && !defined(_libcap_legacy_only_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_ambient_get__parameter_checking(void **state) {
+void test__f_capability_ambient_get__parameter_checking(void **state) {
- const f_capability_value_t value = f_capability_value_t_initialize;
+ const f_capability_value_t value = f_capability_value_t_initialize;
- {
- const f_status_t status = f_capability_ambient_get(value, 0);
+ {
+ const f_status_t status = f_capability_ambient_get(value, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_ambient_get__works(void **state) {
*
* @see f_capability_ambient_get()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_ambient_get__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_ambient_get__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_clear__parameter_checking(void **state) {
+void test__f_capability_clear__parameter_checking(void **state) {
- {
- const f_status_t status = f_capability_clear(0);
+ {
+ const f_status_t status = f_capability_clear(0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_clear__works(void **state) {
*
* @see f_capability_clear()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_clear__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_clear__parameter_checking(void **state);
/**
* Test that function works.
#ifndef _di_level_0_parameter_checking_
void test__f_capability_clear_flag__parameter_checking(void **state) {
- const f_capability_flag_t flag = f_capability_flag_t_initialize;
+ const f_capability_flag_t flag = f_capability_flag_t_initialize;
{
const f_status_t status = f_capability_clear_flag(flag, 0);
*
* @see f_capability_clear_flag()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_clear_flag__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_clear_flag__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_copy__parameter_checking(void **state) {
+void test__f_capability_copy__parameter_checking(void **state) {
- const f_capability_t capability = f_capability_t_initialize;
+ const f_capability_t capability = f_capability_t_initialize;
- {
- const f_status_t status = f_capability_copy(capability, 0);
+ {
+ const f_status_t status = f_capability_copy(capability, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_copy__works(void **state) {
*
* @see f_capability_copy()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_copy__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_copy__parameter_checking(void **state);
#endif // _TEST__F_capability__copy_h
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_copy_external__parameter_checking(void **state) {
+void test__f_capability_copy_external__parameter_checking(void **state) {
- f_capability_t capability = f_capability_t_initialize;
+ f_capability_t capability = f_capability_t_initialize;
- {
- const f_status_t status = f_capability_copy_external(capability, 0, 0, 0);
+ {
+ const f_status_t status = f_capability_copy_external(capability, 0, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_copy_external__works(void **state) {
*
* @see f_capability_copy_external()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_copy_external__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_copy_external__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_copy_internal__parameter_checking(void **state) {
+void test__f_capability_copy_internal__parameter_checking(void **state) {
- f_capability_t capability = f_capability_t_initialize;
- int stub = 0;
- void *external = (void *) &stub;
+ f_capability_t capability = f_capability_t_initialize;
+ int stub = 0;
+ void *external = (void *) &stub;
- {
- const f_status_t status = f_capability_copy_internal(0, &capability);
+ {
+ const f_status_t status = f_capability_copy_internal(0, &capability);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- const f_status_t status = f_capability_copy_internal(external, 0);
+ {
+ const f_status_t status = f_capability_copy_internal(external, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_copy_internal__works(void **state) {
*
* @see f_capability_copy_internal()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_copy_internal__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_copy_internal__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_delete__parameter_checking(void **state) {
+void test__f_capability_delete__parameter_checking(void **state) {
- {
- const f_status_t status = f_capability_delete(0);
+ {
+ const f_status_t status = f_capability_delete(0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_delete__works(void **state) {
*
* @see f_capability_delete()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_delete__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_delete__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_file_descriptor_get__parameter_checking(void **state) {
+void test__f_capability_file_descriptor_get__parameter_checking(void **state) {
- const int descriptor = 0;
+ const int descriptor = 0;
- {
- const f_status_t status = f_capability_file_descriptor_get(descriptor, 0);
+ {
+ const f_status_t status = f_capability_file_descriptor_get(descriptor, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_file_descriptor_get__works(void **state) {
*
* @see f_capability_file_descriptor_get()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_file_descriptor_get__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_file_descriptor_get__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_file_get__parameter_checking(void **state) {
+void test__f_capability_file_get__parameter_checking(void **state) {
const f_string_static_t path = f_string_static_t_initialize;
- {
- const f_status_t status = f_capability_file_get(path, 0);
+ {
+ const f_status_t status = f_capability_file_get(path, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_file_get__works(void **state) {
*
* @see f_capability_file_get()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_file_get__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_file_get__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_flag_get__parameter_checking(void **state) {
+void test__f_capability_flag_get__parameter_checking(void **state) {
- const f_capability_flag_t flag = f_capability_flag_t_initialize;
- const f_capability_t capability = f_capability_t_initialize;
- const f_capability_value_t capability_value = f_capability_value_t_initialize;
+ const f_capability_flag_t flag = f_capability_flag_t_initialize;
+ const f_capability_t capability = f_capability_t_initialize;
+ const f_capability_value_t capability_value = f_capability_value_t_initialize;
- {
- const f_status_t status = f_capability_flag_get(capability, capability_value, flag, 0);
+ {
+ const f_status_t status = f_capability_flag_get(capability, capability_value, flag, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_flag_get__works(void **state) {
*
* @see f_capability_flag_get()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_flag_get__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_flag_get__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_flag_set__parameter_checking(void **state) {
+void test__f_capability_flag_set__parameter_checking(void **state) {
- const f_capability_flag_t flag = f_capability_flag_t_initialize;
- const f_capability_flag_value_t value = f_capability_flag_value_t_initialize;
- const f_int32s_t codes = f_int32s_t_initialize;
+ const f_capability_flag_t flag = f_capability_flag_t_initialize;
+ const f_capability_flag_value_t value = f_capability_flag_value_t_initialize;
+ const f_int32s_t codes = f_int32s_t_initialize;
- {
- const f_status_t status = f_capability_flag_set(flag, value, codes, 0);
+ {
+ const f_status_t status = f_capability_flag_set(flag, value, codes, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_flag_set__works(void **state) {
*
* @see f_capability_flag_set()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_flag_set__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_flag_set__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_from_name__parameter_checking(void **state) {
+void test__f_capability_from_name__parameter_checking(void **state) {
- const f_string_static_t name = f_string_static_t_initialize;
+ const f_string_static_t name = f_string_static_t_initialize;
- {
- const f_status_t status = f_capability_from_name(name, 0);
+ {
+ const f_status_t status = f_capability_from_name(name, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_from_name__works(void **state) {
*
* @see f_capability_from_name()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_from_name__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_from_name__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_from_text__parameter_checking(void **state) {
+void test__f_capability_from_text__parameter_checking(void **state) {
- const f_string_static_t text = f_string_static_t_initialize;
+ const f_string_static_t text = f_string_static_t_initialize;
- {
- const f_status_t status = f_capability_from_text(text, 0);
+ {
+ const f_status_t status = f_capability_from_text(text, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_from_text__works(void **state) {
*
* @see f_capability_from_text()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_from_text__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_from_text__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_initialize__parameter_checking(void **state) {
+void test__f_capability_initialize__parameter_checking(void **state) {
- {
- const f_status_t status = f_capability_initialize(0);
+ {
+ const f_status_t status = f_capability_initialize(0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_initialize__works(void **state) {
*
* @see f_capability_initialize()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_initialize__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_initialize__parameter_checking(void **state);
/**
* Test that function works.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_mode_get__parameter_checking(void **state) {
+void test__f_capability_mode_get__parameter_checking(void **state) {
- {
- const f_status_t status = f_capability_mode_get(0);
+ {
+ const f_status_t status = f_capability_mode_get(0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_mode_get__works(void **state) {
*
* @see f_capability_mode_get()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_mode_get__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_mode_get__parameter_checking(void **state);
/**
* Test that function works.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_mode_get_name__parameter_checking(void **state) {
+void test__f_capability_mode_get_name__parameter_checking(void **state) {
- const f_capability_mode_t mode = f_capability_mode_t_initialize;
+ const f_capability_mode_t mode = f_capability_mode_t_initialize;
- {
- const f_status_t status = f_capability_mode_get_name(mode, 0);
+ {
+ const f_status_t status = f_capability_mode_get_name(mode, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_mode_get_name__works(void **state) {
*
* @see f_capability_mode_get_name()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_mode_get_name__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_mode_get_name__parameter_checking(void **state);
/**
* Test that function works.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_owner_get__parameter_checking(void **state) {
+void test__f_capability_owner_get__parameter_checking(void **state) {
- const f_capability_t capability = f_capability_t_initialize;
+ const f_capability_t capability = f_capability_t_initialize;
- {
- const f_status_t status = f_capability_owner_get(capability, 0);
+ {
+ const f_status_t status = f_capability_owner_get(capability, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_owner_get__works(void **state) {
*
* @see f_capability_owner_get()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_owner_get__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_owner_get__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_process_bound_drop__parameter_checking(void **state) {
+void test__f_capability_process_bound_drop__parameter_checking(void **state) {
- const f_capability_value_t value = f_capability_value_t_initialize;
+ const f_capability_value_t value = f_capability_value_t_initialize;
- {
- const f_status_t status = f_capability_process_bound_drop(value, 0);
+ {
+ const f_status_t status = f_capability_process_bound_drop(value, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_process_bound_drop__works(void **state) {
*
* @see f_capability_process_bound_drop()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_process_bound_drop__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_process_bound_drop__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_process_bound_get__parameter_checking(void **state) {
+void test__f_capability_process_bound_get__parameter_checking(void **state) {
- const f_capability_value_t value = f_capability_value_t_initialize;
+ const f_capability_value_t value = f_capability_value_t_initialize;
- {
- const f_status_t status = f_capability_process_bound_get(value, 0);
+ {
+ const f_status_t status = f_capability_process_bound_get(value, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_process_bound_get__works(void **state) {
*
* @see f_capability_process_bound_get()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_process_bound_get__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_process_bound_get__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_process_get__parameter_checking(void **state) {
+void test__f_capability_process_get__parameter_checking(void **state) {
- {
- const f_status_t status = f_capability_process_get(0);
+ {
+ const f_status_t status = f_capability_process_get(0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_process_get__works(void **state) {
*
* @see f_capability_process_get()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_process_get__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_process_get__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_process_get_by_id__parameter_checking(void **state) {
+void test__f_capability_process_get_by_id__parameter_checking(void **state) {
- {
- const f_status_t status = f_capability_process_get_by_id(0, 0);
+ {
+ const f_status_t status = f_capability_process_get_by_id(0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_process_get_by_id__works(void **state) {
*
* @see f_capability_process_get_by_id()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_process_get_by_id__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_process_get_by_id__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_) && !defined(_libcap_legacy_only_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_security_bits_get__parameter_checking(void **state) {
+void test__f_capability_security_bits_get__parameter_checking(void **state) {
- {
- const f_status_t status = f_capability_security_bits_get(0);
+ {
+ const f_status_t status = f_capability_security_bits_get(0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_security_bits_get__works(void **state) {
*
* @see f_capability_security_bits_get()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_security_bits_get__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_security_bits_get__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_size__parameter_checking(void **state) {
+void test__f_capability_size__parameter_checking(void **state) {
- const f_capability_t capability = f_capability_t_initialize;
+ const f_capability_t capability = f_capability_t_initialize;
- {
- const f_status_t status = f_capability_size(capability, 0);
+ {
+ const f_status_t status = f_capability_size(capability, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_size__works(void **state) {
*
* @see f_capability_size()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_size__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_size__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_to_name__parameter_checking(void **state) {
+void test__f_capability_to_name__parameter_checking(void **state) {
- const int code = CAP_CHOWN;
+ const int code = CAP_CHOWN;
- {
- const f_status_t status = f_capability_to_name(code, 0);
+ {
+ const f_status_t status = f_capability_to_name(code, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_to_name__works(void **state) {
*
* @see f_capability_to_name()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_to_name__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_to_name__parameter_checking(void **state);
/**
* Test that function works.
#endif // !defined(_di_libcap_)
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_capability_to_text__parameter_checking(void **state) {
+void test__f_capability_to_text__parameter_checking(void **state) {
- const f_capability_t capability = f_capability_t_initialize;
+ const f_capability_t capability = f_capability_t_initialize;
- {
- const f_status_t status = f_capability_to_text(capability, 0);
+ {
+ const f_status_t status = f_capability_to_text(capability, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_capability_to_text__works(void **state) {
*
* @see f_capability_to_text()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_capability_to_text__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_capability_to_text__parameter_checking(void **state);
/**
* Test that function works.
cmocka_unit_test(test__f_capability_initialize__fails),
cmocka_unit_test(test__f_capability_initialize__works),
- // cap_get_mode() doesn't return failure.
cmocka_unit_test(test__f_capability_mode_get__works),
- // cap_mode_name() doesn't return failure.
cmocka_unit_test(test__f_capability_mode_get_name__works),
cmocka_unit_test(test__f_capability_mode_set__fails),
cmocka_unit_test(test__f_capability_mode_set__works),
- // cap_get_nsowner() doesn't return failure.
cmocka_unit_test(test__f_capability_owner_get__works),
cmocka_unit_test(test__f_capability_owner_set__fails),
cmocka_unit_test(test__f_capability_size__fails),
cmocka_unit_test(test__f_capability_size__works),
- // f_capability_supported() doesn't return failure.
cmocka_unit_test(test__f_capability_supported__works),
- // f_capability_supported_ambient() doesn't return failure.
cmocka_unit_test(test__f_capability_supported_ambient__works),
- // f_capability_supported_code() doesn't return failure.
cmocka_unit_test(test__f_capability_supported_code__works),
cmocka_unit_test(test__f_capability_to_name__fails),
}
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_color_context_delete__parameter_checking(void **state) {
+void test__f_color_context_delete__parameter_checking(void **state) {
- {
- const f_status_t status = f_color_context_delete(0);
+ {
+ const f_status_t status = f_color_context_delete(0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
#ifdef __cplusplus
} // extern "C"
*
* @see f_color_context_delete()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_color_context_delete__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_color_context_delete__parameter_checking(void **state);
#endif // _TEST__F_color__delete
}
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_color_context_destroy__parameter_checking(void **state) {
+void test__f_color_context_destroy__parameter_checking(void **state) {
- {
- const f_status_t status = f_color_context_destroy(0);
+ {
+ const f_status_t status = f_color_context_destroy(0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
#ifdef __cplusplus
} // extern "C"
*
* @see f_color_context_destroy()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_color_context_destroy__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_color_context_destroy__parameter_checking(void **state);
#endif // _TEST__F_color__destroy
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_color_load_context__parameter_checking(void **state) {
+void test__f_color_load_context__parameter_checking(void **state) {
- {
- const f_status_t status = f_color_load_context(F_true, 0);
+ {
+ const f_status_t status = f_color_load_context(F_true, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_color_load_context__works(void **state) {
*
* @see f_color_load_context()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_color_load_context__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_color_load_context__parameter_checking(void **state);
/**
* Test that function works.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_color_save_1_parameter_checking(void **state) {
+void test__f_color_save_1_parameter_checking(void **state) {
- const f_color_format_t format = f_color_format_t_initialize;
- const f_string_static_t color = macro_f_string_static_t_initialize2("color", 5);
+ const f_color_format_t format = f_color_format_t_initialize;
+ const f_string_static_t color = macro_f_string_static_t_initialize2("color", 5);
- {
- const f_status_t status = f_color_save_1(format, color, 0);
+ {
+ const f_status_t status = f_color_save_1(format, color, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_color_save_1_works(void **state) {
*
* @see f_color_save_1()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_color_save_1_parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_color_save_1_parameter_checking(void **state);
/**
* Test that function works.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_color_save_2_parameter_checking(void **state) {
+void test__f_color_save_2_parameter_checking(void **state) {
- const f_color_format_t format = f_color_format_t_initialize;
- const f_string_static_t color = macro_f_string_static_t_initialize2("color", 5);
+ const f_color_format_t format = f_color_format_t_initialize;
+ const f_string_static_t color = macro_f_string_static_t_initialize2("color", 5);
- {
- const f_status_t status = f_color_save_2(format, color, color, 0);
+ {
+ const f_status_t status = f_color_save_2(format, color, color, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_color_save_2_works(void **state) {
*
* @see f_color_save_2()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_color_save_2_parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_color_save_2_parameter_checking(void **state);
/**
* Test that function works.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_color_save_3_parameter_checking(void **state) {
+void test__f_color_save_3_parameter_checking(void **state) {
- const f_color_format_t format = f_color_format_t_initialize;
- const f_string_static_t color = macro_f_string_static_t_initialize2("color", 5);
+ const f_color_format_t format = f_color_format_t_initialize;
+ const f_string_static_t color = macro_f_string_static_t_initialize2("color", 5);
- {
- const f_status_t status = f_color_save_3(format, color, color, color, 0);
+ {
+ const f_status_t status = f_color_save_3(format, color, color, color, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_color_save_3_works(void **state) {
*
* @see f_color_save_3()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_color_save_3_parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_color_save_3_parameter_checking(void **state);
/**
* Test that function works.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_color_save_4_parameter_checking(void **state) {
+void test__f_color_save_4_parameter_checking(void **state) {
- const f_color_format_t format = f_color_format_t_initialize;
- const f_string_static_t color = macro_f_string_static_t_initialize2("color", 5);
+ const f_color_format_t format = f_color_format_t_initialize;
+ const f_string_static_t color = macro_f_string_static_t_initialize2("color", 5);
- {
- const f_status_t status = f_color_save_4(format, color, color, color, color, 0);
+ {
+ const f_status_t status = f_color_save_4(format, color, color, color, color, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_color_save_4_works(void **state) {
*
* @see f_color_save_4()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_color_save_4_parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_color_save_4_parameter_checking(void **state);
/**
* Test that function works.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_color_save_5_parameter_checking(void **state) {
+void test__f_color_save_5_parameter_checking(void **state) {
- const f_color_format_t format = f_color_format_t_initialize;
- const f_string_static_t color = macro_f_string_static_t_initialize2("color", 5);
+ const f_color_format_t format = f_color_format_t_initialize;
+ const f_string_static_t color = macro_f_string_static_t_initialize2("color", 5);
- {
- const f_status_t status = f_color_save_5(format, color, color, color, color, color, 0);
+ {
+ const f_status_t status = f_color_save_5(format, color, color, color, color, color, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_color_save_5_works(void **state) {
*
* @see f_color_save_5()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_color_save_5_parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_color_save_5_parameter_checking(void **state);
/**
* Test that function works.
const struct CMUnitTest tests[] = {
- // f_color_load_context() only returns failures by other functions that have their own tests.
cmocka_unit_test(test__f_color_load_context__works),
- // f_color_save_1() only returns failures by other functions that have their own tests.
cmocka_unit_test(test__f_color_save_1_works),
- // f_color_save_2() only returns failures by other functions that have their own tests.
cmocka_unit_test(test__f_color_save_2_works),
- // f_color_save_3() only returns failures by other functions that have their own tests.
cmocka_unit_test(test__f_color_save_3_works),
- // f_color_save_4() only returns failures by other functions that have their own tests.
cmocka_unit_test(test__f_color_save_4_works),
- // f_color_save_5() only returns failures by other functions that have their own tests.
cmocka_unit_test(test__f_color_save_5_works),
cmocka_unit_test(test__f_color_context_delete__frees_memory),
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_console_environment_process__parameter_checking(void **state) {
+void test__f_console_environment_process__parameter_checking(void **state) {
- const f_console_arguments_t arguments = f_console_arguments_t_initialize;
+ const f_console_arguments_t arguments = f_console_arguments_t_initialize;
- {
- const f_status_t status = f_console_environment_process(arguments, 0);
+ {
+ const f_status_t status = f_console_environment_process(arguments, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_console_environment_process__works(void **state) {
*
* @see f_console_environment_process()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_console_environment_process__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_console_environment_process__parameter_checking(void **state);
/**
* Test that function works.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_console_identify__parameter_checking(void **state) {
+void test__f_console_identify__parameter_checking(void **state) {
- const f_string_t input = f_string_t_initialize;
+ const f_string_t input = f_string_t_initialize;
- {
- const f_status_t status = f_console_identify(input, 0);
+ {
+ const f_status_t status = f_console_identify(input, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_console_identify__works(void **state) {
*
* @see f_console_identify()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_console_identify__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_console_identify__parameter_checking(void **state);
/**
* Test that function works.
f_console_parameters_delete(¶meters);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_console_parameter_prioritize_left__parameter_checking(void **state) {
+void test__f_console_parameter_prioritize_left__parameter_checking(void **state) {
- f_console_parameters_t parameters = f_console_parameters_t_initialize;
- f_console_parameter_ids_t choices = f_console_parameter_ids_t_initialize;
-
- {
- const f_status_t status = f_console_parameter_prioritize_left(parameters, choices, 0);
+ f_console_parameters_t parameters = f_console_parameters_t_initialize;
+ f_console_parameter_ids_t choices = f_console_parameter_ids_t_initialize;
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ {
+ const f_status_t status = f_console_parameter_prioritize_left(parameters, choices, 0);
- {
- f_console_parameter_id_t ids_array[1] = { f_console_parameter_id_t_initialize };
- choices.id = ids_array;
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- const f_status_t status = f_console_parameter_prioritize_left(parameters, choices, 0);
+ {
+ f_console_parameter_id_t ids_array[1] = { f_console_parameter_id_t_initialize };
+ choices.id = ids_array;
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ const f_status_t status = f_console_parameter_prioritize_left(parameters, choices, 0);
- f_console_parameters_delete(¶meters);
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+
+ f_console_parameters_delete(¶meters);
+}
void test__f_console_parameter_prioritize_left__works(void **state) {
*
* @see f_console_parameter_prioritize_left()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_console_parameter_prioritize_left__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_console_parameter_prioritize_left__parameter_checking(void **state);
/**
* Test that function works.
f_console_parameters_delete(¶meters);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_console_parameter_prioritize_right__parameter_checking(void **state) {
+void test__f_console_parameter_prioritize_right__parameter_checking(void **state) {
- f_console_parameters_t parameters = f_console_parameters_t_initialize;
- f_console_parameter_ids_t choices = f_console_parameter_ids_t_initialize;
-
- {
- const f_status_t status = f_console_parameter_prioritize_right(parameters, choices, 0);
+ f_console_parameters_t parameters = f_console_parameters_t_initialize;
+ f_console_parameter_ids_t choices = f_console_parameter_ids_t_initialize;
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ {
+ const f_status_t status = f_console_parameter_prioritize_right(parameters, choices, 0);
- {
- f_console_parameter_id_t ids_array[1] = { f_console_parameter_id_t_initialize };
- choices.id = ids_array;
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- const f_status_t status = f_console_parameter_prioritize_right(parameters, choices, 0);
+ {
+ f_console_parameter_id_t ids_array[1] = { f_console_parameter_id_t_initialize };
+ choices.id = ids_array;
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ const f_status_t status = f_console_parameter_prioritize_right(parameters, choices, 0);
- f_console_parameters_delete(¶meters);
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+
+ f_console_parameters_delete(¶meters);
+}
void test__f_console_parameter_prioritize_right__works(void **state) {
*
* @see f_console_parameter_prioritize_right()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_console_parameter_prioritize_right__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_console_parameter_prioritize_right__parameter_checking(void **state);
/**
* Test that function works.
f_console_parameters_delete(¶meters);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_console_parameter_process__parameter_checking(void **state) {
+void test__f_console_parameter_process__parameter_checking(void **state) {
- const f_console_arguments_t arguments = f_console_arguments_t_initialize;
+ const f_console_arguments_t arguments = f_console_arguments_t_initialize;
- {
- const f_status_t status = f_console_parameter_process(arguments, 0);
+ {
+ const f_status_t status = f_console_parameter_process(arguments, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_console_parameter_process__works(void **state) {
*
* @see f_console_parameter_process()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_console_parameter_process__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_console_parameter_process__parameter_checking(void **state);
/**
* Test that function works.
}
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_console_parameters_delete__parameter_checking(void **state) {
+void test__f_console_parameters_delete__parameter_checking(void **state) {
- {
- const f_status_t status = f_console_parameters_delete(0);
+ {
+ const f_status_t status = f_console_parameters_delete(0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
#ifdef __cplusplus
} // extern "C"
*
* @see f_console_parameters_delete()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_console_parameters_delete__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_console_parameters_delete__parameter_checking(void **state);
#endif // _TEST__F_console__delete
}
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_console_parameters_destroy__parameter_checking(void **state) {
+void test__f_console_parameters_destroy__parameter_checking(void **state) {
- {
- const f_status_t status = f_console_parameters_destroy(0);
+ {
+ const f_status_t status = f_console_parameters_destroy(0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
#ifdef __cplusplus
} // extern "C"
*
* @see f_console_parameters_destroy()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_console_parameters_destroy__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_console_parameters_destroy__parameter_checking(void **state);
#endif // _TEST__F_console__destroy
const struct CMUnitTest tests[] = {
- // f_console_environment_process() only returns memory failures.
cmocka_unit_test(test__f_console_environment_process__data_not),
cmocka_unit_test(test__f_console_environment_process__works),
- // f_console_identify() doesn't return failure.
cmocka_unit_test(test__f_console_identify__works),
cmocka_unit_test(test__f_console_parameter_prioritize_left__fails),
cmocka_unit_test(test__f_console_parameter_prioritize_right__fails),
cmocka_unit_test(test__f_console_parameter_prioritize_right__works),
- // f_console_parameter_process() only returns memory failures.
cmocka_unit_test(test__f_console_parameter_process__no_arguments_no_program),
cmocka_unit_test(test__f_console_parameter_process__no_arguments),
cmocka_unit_test(test__f_console_parameter_process__null_arguments),
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_control_group_copy__parameter_checking(void **state) {
+void test__f_control_group_copy__parameter_checking(void **state) {
- const f_control_group_t source = f_control_group_t_initialize;
+ const f_control_group_t source = f_control_group_t_initialize;
- {
- const f_status_t status = f_control_group_copy(source, 0);
+ {
+ const f_status_t status = f_control_group_copy(source, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_control_group_copy__works(void **state) {
*
* @see f_control_group_copy()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_control_group_copy__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_control_group_copy__parameter_checking(void **state);
/**
* Test that function works.
const struct CMUnitTest tests[] = {
- // f_control_group_copy() only returns memory failures.
cmocka_unit_test(test__f_control_group_copy__works),
#ifndef _di_level_0_parameter_checking_
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_conversion_character_to_binary__parameter_checking(void **state) {
+void test__f_conversion_character_to_binary__parameter_checking(void **state) {
- {
- const f_status_t status = f_conversion_character_to_binary(0, 0);
+ {
+ const f_status_t status = f_conversion_character_to_binary(0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_conversion_character_to_binary__works(void **state) {
*
* @see f_conversion_character_to_binary()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_conversion_character_to_binary__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_conversion_character_to_binary__parameter_checking(void **state);
/**
* Test that function works.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_conversion_character_to_decimal__parameter_checking(void **state) {
+void test__f_conversion_character_to_decimal__parameter_checking(void **state) {
- {
- const f_status_t status = f_conversion_character_to_decimal(0, 0);
+ {
+ const f_status_t status = f_conversion_character_to_decimal(0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_conversion_character_to_decimal__works(void **state) {
*
* @see f_conversion_character_to_decimal()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_conversion_character_to_decimal__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_conversion_character_to_decimal__parameter_checking(void **state);
/**
* Test that function works.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_conversion_character_to_duodecimal__parameter_checking(void **state) {
+void test__f_conversion_character_to_duodecimal__parameter_checking(void **state) {
- {
- const f_status_t status = f_conversion_character_to_duodecimal(0, 0);
+ {
+ const f_status_t status = f_conversion_character_to_duodecimal(0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_conversion_character_to_duodecimal__works(void **state) {
*
* @see f_conversion_character_to_duodecimal()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_conversion_character_to_duodecimal__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_conversion_character_to_duodecimal__parameter_checking(void **state);
/**
* Test that function works.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_conversion_character_to_hexidecimal__parameter_checking(void **state) {
+void test__f_conversion_character_to_hexidecimal__parameter_checking(void **state) {
- {
- const f_status_t status = f_conversion_character_to_hexidecimal(0, 0);
+ {
+ const f_status_t status = f_conversion_character_to_hexidecimal(0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_conversion_character_to_hexidecimal__works(void **state) {
*
* @see f_conversion_character_to_hexidecimal()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_conversion_character_to_hexidecimal__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_conversion_character_to_hexidecimal__parameter_checking(void **state);
/**
* Test that function works.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_conversion_character_to_octal__parameter_checking(void **state) {
+void test__f_conversion_character_to_octal__parameter_checking(void **state) {
- {
- const f_status_t status = f_conversion_character_to_octal(0, 0);
+ {
+ const f_status_t status = f_conversion_character_to_octal(0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_conversion_character_to_octal__works(void **state) {
*
* @see f_conversion_character_to_octal()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_conversion_character_to_octal__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_conversion_character_to_octal__parameter_checking(void **state);
/**
* Test that function works.
}
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_conversion_number_signed_print__parameter_checking(void **state) {
+void test__f_conversion_number_signed_print__parameter_checking(void **state) {
- {
- const f_conversion_data_t data = macro_f_conversion_data_t_initialize(2, 0, 0);
+ {
+ const f_conversion_data_t data = macro_f_conversion_data_t_initialize(2, 0, 0);
- const f_status_t status = f_conversion_number_signed_print(0, data, 0);
+ const f_status_t status = f_conversion_number_signed_print(0, data, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- FILE *file = 0;
- const f_conversion_data_t data = macro_f_conversion_data_t_initialize(1, 0, 0);
+ {
+ FILE *file = 0;
+ const f_conversion_data_t data = macro_f_conversion_data_t_initialize(1, 0, 0);
- const f_status_t status = f_conversion_number_signed_print(0, data, file);
+ const f_status_t status = f_conversion_number_signed_print(0, data, file);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_conversion_number_signed_print__works(void **state) {
*
* @see f_conversion_number_signed_print()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_conversion_number_signed_print__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_conversion_number_signed_print__parameter_checking(void **state);
/**
* Test that function works.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_conversion_number_signed_to_string__parameter_checking(void **state) {
+void test__f_conversion_number_signed_to_string__parameter_checking(void **state) {
- {
- const f_conversion_data_t data = macro_f_conversion_data_t_initialize(2, 0, 0);
+ {
+ const f_conversion_data_t data = macro_f_conversion_data_t_initialize(2, 0, 0);
- const f_status_t status = f_conversion_number_signed_to_string(0, data, 0);
+ const f_status_t status = f_conversion_number_signed_to_string(0, data, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- f_string_dynamic_t string;
- const f_conversion_data_t data = macro_f_conversion_data_t_initialize(1, 0, 0);
+ {
+ f_string_dynamic_t string;
+ const f_conversion_data_t data = macro_f_conversion_data_t_initialize(1, 0, 0);
- const f_status_t status = f_conversion_number_signed_to_string(0, data, &string);
+ const f_status_t status = f_conversion_number_signed_to_string(0, data, &string);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_conversion_number_signed_to_string__works(void **state) {
*
* @see f_conversion_number_signed_to_string()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_conversion_number_signed_to_string__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_conversion_number_signed_to_string__parameter_checking(void **state);
/**
* Test that function works.
}
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_conversion_number_unsigned_print__parameter_checking(void **state) {
+void test__f_conversion_number_unsigned_print__parameter_checking(void **state) {
- {
- const f_conversion_data_t data = macro_f_conversion_data_t_initialize(2, 0, 0);
+ {
+ const f_conversion_data_t data = macro_f_conversion_data_t_initialize(2, 0, 0);
- const f_status_t status = f_conversion_number_unsigned_print(0, data, 0);
+ const f_status_t status = f_conversion_number_unsigned_print(0, data, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- FILE *file = 0;
- const f_conversion_data_t data = macro_f_conversion_data_t_initialize(1, 0, 0);
+ {
+ FILE *file = 0;
+ const f_conversion_data_t data = macro_f_conversion_data_t_initialize(1, 0, 0);
- const f_status_t status = f_conversion_number_unsigned_print(0, data, file);
+ const f_status_t status = f_conversion_number_unsigned_print(0, data, file);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_conversion_number_unsigned_print__works(void **state) {
*
* @see f_conversion_number_unsigned_print()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_conversion_number_unsigned_print__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_conversion_number_unsigned_print__parameter_checking(void **state);
/**
* Test that function works.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_conversion_number_unsigned_to_string__parameter_checking(void **state) {
+void test__f_conversion_number_unsigned_to_string__parameter_checking(void **state) {
- {
- const f_conversion_data_t data = macro_f_conversion_data_t_initialize(2, 0, 0);
+ {
+ const f_conversion_data_t data = macro_f_conversion_data_t_initialize(2, 0, 0);
- const f_status_t status = f_conversion_number_unsigned_to_string(0, data, 0);
+ const f_status_t status = f_conversion_number_unsigned_to_string(0, data, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- f_string_dynamic_t string;
- const f_conversion_data_t data = macro_f_conversion_data_t_initialize(1, 0, 0);
+ {
+ f_string_dynamic_t string;
+ const f_conversion_data_t data = macro_f_conversion_data_t_initialize(1, 0, 0);
- const f_status_t status = f_conversion_number_unsigned_to_string(0, data, &string);
+ const f_status_t status = f_conversion_number_unsigned_to_string(0, data, &string);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_conversion_number_unsigned_to_string__works(void **state) {
*
* @see f_conversion_number_unsigned_to_string()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_conversion_number_unsigned_to_string__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_conversion_number_unsigned_to_string__parameter_checking(void **state);
/**
* Test that function works.
const struct CMUnitTest tests[] = {
- // f_conversion_character_is_binary() doesn't return failure.
cmocka_unit_test(test__f_conversion_character_is_binary__works),
- // f_conversion_character_is_decimal() doesn't return failure.
cmocka_unit_test(test__f_conversion_character_is_decimal__works),
- // f_conversion_character_is_duodecimal() doesn't return failure.
cmocka_unit_test(test__f_conversion_character_is_duodecimal__works),
- // f_conversion_character_is_hexidecimal() doesn't return failure.
cmocka_unit_test(test__f_conversion_character_is_hexidecimal__works),
- // f_conversion_character_is_octal() doesn't return failure.
cmocka_unit_test(test__f_conversion_character_is_octal__works),
cmocka_unit_test(test__f_conversion_character_to_binary__fails),
//cmocka_unit_test(test__f_conversion_number_signed_print__fails_for_zero),
//cmocka_unit_test(test__f_conversion_number_signed_print__works),
- // f_conversion_number_signed_to_string() only returns memory failures.
cmocka_unit_test(test__f_conversion_number_signed_to_string__works),
cmocka_unit_test(test__f_conversion_number_signed_to_string__works_for_prepend),
cmocka_unit_test(test__f_conversion_number_signed_to_string__works_for_zero),
//cmocka_unit_test(test__f_conversion_number_unsigned_print__fails_for_zero),
//cmocka_unit_test(test__f_conversion_number_unsigned_print__works),
- // f_conversion_number_unsigned_to_string() only returns memory failures.
cmocka_unit_test(test__f_conversion_number_unsigned_to_string__works),
cmocka_unit_test(test__f_conversion_number_unsigned_to_string__works_for_prepend),
cmocka_unit_test(test__f_conversion_number_unsigned_to_string__works_for_zero),
f_string_dynamics_resize(0, &names);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_directory_list__parameter_checking(void **state) {
+void test__f_directory_list__parameter_checking(void **state) {
- const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
+ const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
- {
- const f_status_t status = f_directory_list(path, 0, 0, 0);
+ {
+ const f_status_t status = f_directory_list(path, 0, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_directory_list__returns_data_not(void **state) {
*
* @see f_directory_list()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_directory_list__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_directory_list__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_directory_open__parameter_checking(void **state) {
+void test__f_directory_open__parameter_checking(void **state) {
- const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
+ const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
- {
- const f_status_t status = f_directory_open(path, 0, 0);
+ {
+ const f_status_t status = f_directory_open(path, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_directory_open__returns_data_not(void **state) {
*
* @see f_directory_open()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_directory_open__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_directory_open__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_directory_open_at__parameter_checking(void **state) {
+void test__f_directory_open_at__parameter_checking(void **state) {
- const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
+ const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
- {
- const f_status_t status = f_directory_open_at(0, path, 0, 0);
+ {
+ const f_status_t status = f_directory_open_at(0, path, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_directory_open_at__returns_data_not(void **state) {
*
* @see f_directory_open_at()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_directory_open_at__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_directory_open_at__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
}
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_directory_remove__parameter_checking(void **state) {
+void test__f_directory_remove__parameter_checking(void **state) {
- const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
+ const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
- {
- const f_status_t status = f_directory_remove(path, -1, 0);
+ {
+ const f_status_t status = f_directory_remove(path, -1, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_directory_remove__returns_data_not(void **state) {
*
* @see f_directory_remove()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_directory_remove__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_directory_remove__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
}
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_directory_remove_custom__parameter_checking(void **state) {
+void test__f_directory_remove_custom__parameter_checking(void **state) {
- const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
+ const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
- {
- const f_status_t status = f_directory_remove_custom(path, -1, 0, 0);
+ {
+ const f_status_t status = f_directory_remove_custom(path, -1, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_directory_remove_custom__returns_data_not(void **state) {
*
* @see f_directory_remove_custom()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_directory_remove_custom__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_directory_remove_custom__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
f_string_dynamic_resize(0, &buffer);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_environment_get__parameter_checking(void **state) {
+void test__f_environment_get__parameter_checking(void **state) {
- const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
+ const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
- {
- const f_status_t status = f_environment_get(path, 0);
+ {
+ const f_status_t status = f_environment_get(path, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_environment_get__returns_data_not(void **state) {
*
* @see f_environment_get()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_environment_get__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_environment_get__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
}
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_close__parameter_checking(void **state) {
+void test__f_file_close__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_close(0);
+ {
+ const f_status_t status = f_file_close(0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_close__works(void **state) {
*
* @see f_file_close()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_close__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_close__parameter_checking(void **state);
/**
* Test that function works.
}
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_close_flush__parameter_checking(void **state) {
+void test__f_file_close_flush__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_close_flush(0);
+ {
+ const f_status_t status = f_file_close_flush(0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_close_flush__works(void **state) {
*
* @see f_file_close_flush()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_close_flush__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_close_flush__parameter_checking(void **state);
/**
* Test that function works.
}
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_descriptor__parameter_checking(void **state) {
+void test__f_file_descriptor__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_descriptor(0);
+ {
+ const f_status_t status = f_file_descriptor(0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_descriptor__works(void **state) {
*
* @see f_file_descriptor()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_descriptor__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_descriptor__parameter_checking(void **state);
/**
* Test that function works.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_group_read__parameter_checking(void **state) {
+void test__f_file_group_read__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_group_read(f_string_empty_s, F_false, 0);
+ {
+ const f_status_t status = f_file_group_read(f_string_empty_s, F_false, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_group_read__returns_data_not(void **state) {
*
* @see f_file_group_read()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_group_read__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_group_read__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
f_string_dynamic_resize(0, &buffer);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_link_read__parameter_checking(void **state) {
+void test__f_file_link_read__parameter_checking(void **state) {
- struct stat statistics;
-
- memset(&statistics, 0, sizeof(struct stat));
+ struct stat statistics;
- f_string_dynamic_t buffer = f_string_dynamic_t_initialize;
+ memset(&statistics, 0, sizeof(struct stat));
- {
- const f_status_t status = f_file_link_read(f_string_empty_s, F_true, 0);
+ f_string_dynamic_t buffer = f_string_dynamic_t_initialize;
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ {
+ const f_status_t status = f_file_link_read(f_string_empty_s, F_true, 0);
- f_string_dynamic_resize(0, &buffer);
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+
+ f_string_dynamic_resize(0, &buffer);
+}
void test__f_file_link_read__returns_data_not(void **state) {
*
* @see f_file_link_read()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_link_read__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_link_read__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
f_string_dynamic_resize(0, &buffer);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_link_read_at__parameter_checking(void **state) {
+void test__f_file_link_read_at__parameter_checking(void **state) {
- f_string_dynamic_t buffer = f_string_dynamic_t_initialize;
-
- {
- const f_status_t status = f_file_link_read_at(0, f_string_empty_s, 0, 0);
+ f_string_dynamic_t buffer = f_string_dynamic_t_initialize;
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ {
+ const f_status_t status = f_file_link_read_at(0, f_string_empty_s, 0, 0);
- f_string_dynamic_resize(0, &buffer);
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+
+ f_string_dynamic_resize(0, &buffer);
+}
void test__f_file_link_read_at__returns_data_not(void **state) {
*
* @see f_file_link_read_at()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_link_read_at__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_link_read_at__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_mode_determine__parameter_checking(void **state) {
+void test__f_file_mode_determine__parameter_checking(void **state) {
- const mode_t mode_file = 0;
- const f_file_mode_t mode_change = f_file_mode_t_initialize;
+ const mode_t mode_file = 0;
+ const f_file_mode_t mode_change = f_file_mode_t_initialize;
- {
- const f_status_t status = f_file_mode_determine(mode_file, mode_change, 0, F_false, 0);
+ {
+ const f_status_t status = f_file_mode_determine(mode_file, mode_change, 0, F_false, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_mode_determine__works_basic(void **state) {
*
* @see f_file_mode_determine()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_mode_determine__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_mode_determine__parameter_checking(void **state);
/**
* Test that function works for basic combinations.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_mode_from_string__parameter_checking(void **state) {
+void test__f_file_mode_from_string__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_mode_from_string(f_string_empty_s, 0, 0, 0);
+ {
+ const f_status_t status = f_file_mode_from_string(f_string_empty_s, 0, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- f_file_mode_t mode_file = f_file_mode_t_initialize;
+ {
+ f_file_mode_t mode_file = f_file_mode_t_initialize;
- const f_status_t status = f_file_mode_from_string(f_string_empty_s, 0, &mode_file, 0);
+ const f_status_t status = f_file_mode_from_string(f_string_empty_s, 0, &mode_file, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- uint8_t replace = 0;
+ {
+ uint8_t replace = 0;
- const f_status_t status = f_file_mode_from_string(f_string_empty_s, 0, 0, &replace);
+ const f_status_t status = f_file_mode_from_string(f_string_empty_s, 0, 0, &replace);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_mode_from_string__returns_data_not(void **state) {
*
* @see f_file_mode_from_string()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_mode_from_string__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_mode_from_string__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_mode_read__parameter_checking(void **state) {
+void test__f_file_mode_read__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_mode_read(f_string_empty_s, F_true, 0);
+ {
+ const f_status_t status = f_file_mode_read(f_string_empty_s, F_true, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_mode_read__returns_data_not(void **state) {
*
* @see f_file_mode_read()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_mode_read__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_mode_read__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_mode_read_at__parameter_checking(void **state) {
+void test__f_file_mode_read_at__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_mode_read_at(0, f_string_empty_s, 0, 0);
+ {
+ const f_status_t status = f_file_mode_read_at(0, f_string_empty_s, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_mode_read_at__returns_data_not(void **state) {
*
* @see f_file_mode_read_at()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_mode_read_at__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_mode_read_at__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_mode_to_mode__parameter_checking(void **state) {
+void test__f_file_mode_to_mode__parameter_checking(void **state) {
- const f_file_mode_t mode = f_file_mode_t_initialize;
+ const f_file_mode_t mode = f_file_mode_t_initialize;
- {
- const f_status_t status = f_file_mode_to_mode(mode, 0);
+ {
+ const f_status_t status = f_file_mode_to_mode(mode, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_mode_to_mode__works(void **state) {
*
* @see f_file_mode_to_mode()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_mode_to_mode__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_mode_to_mode__parameter_checking(void **state);
/**
* Test that function works.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_name_base__parameter_checking(void **state) {
+void test__f_file_name_base__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_name_base(f_string_empty_s, 0);
+ {
+ const f_status_t status = f_file_name_base(f_string_empty_s, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_name_base__returns_data_not(void **state) {
*
* @see f_file_name_base()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_name_base__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_name_base__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_name_directory__parameter_checking(void **state) {
+void test__f_file_name_directory__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_name_directory(f_string_empty_s, 0);
+ {
+ const f_status_t status = f_file_name_directory(f_string_empty_s, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_name_directory__returns_data_not(void **state) {
*
* @see f_file_name_directory()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_name_directory__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_name_directory__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_open__parameter_checking(void **state) {
+void test__f_file_open__parameter_checking(void **state) {
- const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
+ const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
- {
- const f_status_t status = f_file_open(path, 0, 0);
+ {
+ const f_status_t status = f_file_open(path, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_open__returns_data_not(void **state) {
*
* @see f_file_open()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_open__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_open__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_open_at__parameter_checking(void **state) {
+void test__f_file_open_at__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_open_at(0, f_string_empty_s, 0, 0);
+ {
+ const f_status_t status = f_file_open_at(0, f_string_empty_s, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_open_at__returns_data_not(void **state) {
*
* @see f_file_open_at()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_open_at__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_open_at__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_owner_read__parameter_checking(void **state) {
+void test__f_file_owner_read__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_owner_read(f_string_empty_s, F_false, 0);
+ {
+ const f_status_t status = f_file_owner_read(f_string_empty_s, F_false, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_owner_read__returns_data_not(void **state) {
*
* @see f_file_owner_read()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_owner_read__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_owner_read__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
f_string_dynamic_resize(0, &buffer);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_read__parameter_checking(void **state) {
+void test__f_file_read__parameter_checking(void **state) {
- f_file_t file = f_file_t_initialize;
- f_string_dynamic_t buffer = f_string_dynamic_t_initialize;
-
- file.id = 1;
+ f_file_t file = f_file_t_initialize;
+ f_string_dynamic_t buffer = f_string_dynamic_t_initialize;
- {
- const f_status_t status = f_file_read(file, 0);
+ file.id = 1;
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ {
+ const f_status_t status = f_file_read(file, 0);
- file.size_read = 0;
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- const f_status_t status = f_file_read(file, 0);
+ file.size_read = 0;
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ {
+ const f_status_t status = f_file_read(file, 0);
- {
- f_string_dynamic_t string = f_string_dynamic_t_initialize;
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- const f_status_t status = f_file_read(file, &string);
+ {
+ f_string_dynamic_t string = f_string_dynamic_t_initialize;
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ const f_status_t status = f_file_read(file, &string);
- f_string_dynamic_resize(0, &buffer);
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+
+ f_string_dynamic_resize(0, &buffer);
+}
void test__f_file_read__returns_file_closed(void **state) {
*
* @see f_file_read()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_read__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_read__parameter_checking(void **state);
/**
* Test that function works but the file is closed.
f_string_dynamic_resize(0, &buffer);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_read_block__parameter_checking(void **state) {
+void test__f_file_read_block__parameter_checking(void **state) {
- f_file_t file = f_file_t_initialize;
- f_string_dynamic_t buffer = f_string_dynamic_t_initialize;
-
- file.id = 1;
+ f_file_t file = f_file_t_initialize;
+ f_string_dynamic_t buffer = f_string_dynamic_t_initialize;
- {
- const f_status_t status = f_file_read_block(file, 0);
+ file.id = 1;
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ {
+ const f_status_t status = f_file_read_block(file, 0);
- file.size_read = 0;
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- const f_status_t status = f_file_read_block(file, 0);
+ file.size_read = 0;
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ {
+ const f_status_t status = f_file_read_block(file, 0);
- {
- f_string_dynamic_t string = f_string_dynamic_t_initialize;
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- const f_status_t status = f_file_read_block(file, &string);
+ {
+ f_string_dynamic_t string = f_string_dynamic_t_initialize;
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ const f_status_t status = f_file_read_block(file, &string);
- f_string_dynamic_resize(0, &buffer);
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+
+ f_string_dynamic_resize(0, &buffer);
+}
void test__f_file_read_block__returns_file_closed(void **state) {
*
* @see f_file_read_block()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_read_block__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_read_block__parameter_checking(void **state);
/**
* Test that function works but the file is closed.
f_string_dynamic_resize(0, &buffer);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_read_until__parameter_checking(void **state) {
+void test__f_file_read_until__parameter_checking(void **state) {
- f_file_t file = f_file_t_initialize;
- f_string_dynamic_t buffer = f_string_dynamic_t_initialize;
-
- file.id = 1;
+ f_file_t file = f_file_t_initialize;
+ f_string_dynamic_t buffer = f_string_dynamic_t_initialize;
- {
- const f_status_t status = f_file_read_until(file, 1, 0);
+ file.id = 1;
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ {
+ const f_status_t status = f_file_read_until(file, 1, 0);
- file.size_read = 0;
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- const f_status_t status = f_file_read_until(file, 1, 0);
+ file.size_read = 0;
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ {
+ const f_status_t status = f_file_read_until(file, 1, 0);
- {
- f_string_dynamic_t string = f_string_dynamic_t_initialize;
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- const f_status_t status = f_file_read_until(file, 1, &string);
+ {
+ f_string_dynamic_t string = f_string_dynamic_t_initialize;
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ const f_status_t status = f_file_read_until(file, 1, &string);
- f_string_dynamic_resize(0, &buffer);
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+
+ f_string_dynamic_resize(0, &buffer);
+}
void test__f_file_read_until__returns_file_closed(void **state) {
*
* @see f_file_read_until()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_read_until__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_read_until__parameter_checking(void **state);
/**
* Test that function works but the file is closed.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_seek__parameter_checking(void **state) {
+void test__f_file_seek__parameter_checking(void **state) {
- off_t seeked = 0;
+ off_t seeked = 0;
- {
- const f_status_t status = f_file_seek(0, -1, 0, 0);
+ {
+ const f_status_t status = f_file_seek(0, -1, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- const f_status_t status = f_file_seek(0, -1, 0, &seeked);
+ {
+ const f_status_t status = f_file_seek(0, -1, 0, &seeked);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- const f_status_t status = f_file_seek(0, 0, 0, 0);
+ {
+ const f_status_t status = f_file_seek(0, 0, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_seek__works(void **state) {
*
* @see f_file_seek()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_seek__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_seek__parameter_checking(void **state);
/**
* Test that function works.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_size__parameter_checking(void **state) {
+void test__f_file_size__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_size(f_string_empty_s, F_false, 0);
+ {
+ const f_status_t status = f_file_size(f_string_empty_s, F_false, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_size__returns_data_not(void **state) {
*
* @see f_file_size()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_size__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_size__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_size_at__parameter_checking(void **state) {
+void test__f_file_size_at__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_size_at(0, f_string_empty_s, F_false, 0);
+ {
+ const f_status_t status = f_file_size_at(0, f_string_empty_s, F_false, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_size_at__returns_data_not(void **state) {
*
* @see f_file_size_at()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_size_at__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_size_at__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_size_by_id__parameter_checking(void **state) {
+void test__f_file_size_by_id__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_size_by_id(0, 0);
+ {
+ const f_status_t status = f_file_size_by_id(0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_size_by_id__returns_file_closed(void **state) {
*
* @see f_file_size_by_id()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_size_by_id__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_size_by_id__parameter_checking(void **state);
/**
* Test that function works but the file is closed.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_stat__parameter_checking(void **state) {
+void test__f_file_stat__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_stat(f_string_empty_s, F_false, 0);
+ {
+ const f_status_t status = f_file_stat(f_string_empty_s, F_false, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_stat__returns_data_not(void **state) {
*
* @see f_file_stat()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_stat__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_stat__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_stat_at__parameter_checking(void **state) {
+void test__f_file_stat_at__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_stat_at(0, f_string_empty_s, F_false, 0);
+ {
+ const f_status_t status = f_file_stat_at(0, f_string_empty_s, F_false, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_stat_at__returns_data_not(void **state) {
*
* @see f_file_stat_at()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_stat_at__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_stat_at__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_stat_by_id__parameter_checking(void **state) {
+void test__f_file_stat_by_id__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_stat_by_id(0, 0);
+ {
+ const f_status_t status = f_file_stat_by_id(0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_stat_by_id__returns_file_closed(void **state) {
*
* @see f_file_stat_by_id()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_stat_by_id__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_stat_by_id__parameter_checking(void **state);
/**
* Test that function works but the file is closed.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_stream_close__parameter_checking(void **state) {
+void test__f_file_stream_close__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_stream_close(F_false, 0);
+ {
+ const f_status_t status = f_file_stream_close(F_false, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_stream_close__works(void **state) {
*
* @see f_file_stream_close()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_stream_close__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_stream_close__parameter_checking(void **state);
/**
* Test that function works.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_stream_open__parameter_checking(void **state) {
+void test__f_file_stream_open__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_stream_open(f_string_empty_s, f_string_empty_s, 0);
+ {
+ const f_status_t status = f_file_stream_open(f_string_empty_s, f_string_empty_s, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_stream_open__returns_data_not(void **state) {
*
* @see f_file_stream_open()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_stream_open__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_stream_open__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_stream_open_descriptor__parameter_checking(void **state) {
+void test__f_file_stream_open_descriptor__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_stream_open_descriptor(f_string_empty_s, 0);
+ {
+ const f_status_t status = f_file_stream_open_descriptor(f_string_empty_s, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_stream_open_descriptor__works(void **state) {
*
* @see f_file_stream_open_descriptor()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_stream_open_descriptor__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_stream_open_descriptor__parameter_checking(void **state);
/**
* Test that function works.
f_string_dynamic_resize(0, &buffer);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_stream_read__parameter_checking(void **state) {
+void test__f_file_stream_read__parameter_checking(void **state) {
- f_file_t file = f_file_t_initialize;
+ f_file_t file = f_file_t_initialize;
- {
- const f_status_t status = f_file_stream_read(file, 0);
+ {
+ const f_status_t status = f_file_stream_read(file, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- file.size_read = 0;
+ file.size_read = 0;
- {
- const f_status_t status = f_file_stream_read(file, 0);
+ {
+ const f_status_t status = f_file_stream_read(file, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- f_string_dynamic_t string = f_string_dynamic_t_initialize;
+ {
+ f_string_dynamic_t string = f_string_dynamic_t_initialize;
- const f_status_t status = f_file_stream_read(file, &string);
+ const f_status_t status = f_file_stream_read(file, &string);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_stream_read__returns_file_closed(void **state) {
*
* @see f_file_stream_read()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_stream_read__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_stream_read__parameter_checking(void **state);
/**
* Test that function works but the file stream is closed.
f_string_dynamic_resize(0, &buffer);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_stream_read_block__parameter_checking(void **state) {
+void test__f_file_stream_read_block__parameter_checking(void **state) {
- f_file_t file = f_file_t_initialize;
+ f_file_t file = f_file_t_initialize;
- {
- const f_status_t status = f_file_stream_read_block(file, 0);
+ {
+ const f_status_t status = f_file_stream_read_block(file, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- file.size_read = 0;
+ file.size_read = 0;
- {
- const f_status_t status = f_file_stream_read_block(file, 0);
+ {
+ const f_status_t status = f_file_stream_read_block(file, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- f_string_dynamic_t string = f_string_dynamic_t_initialize;
+ {
+ f_string_dynamic_t string = f_string_dynamic_t_initialize;
- const f_status_t status = f_file_stream_read_block(file, &string);
+ const f_status_t status = f_file_stream_read_block(file, &string);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_stream_read_block__returns_file_closed(void **state) {
*
* @see f_file_stream_read_block()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_stream_read_block__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_stream_read_block__parameter_checking(void **state);
/**
* Test that function works but the file stream is closed.
f_string_dynamic_resize(0, &buffer);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_stream_read_until__parameter_checking(void **state) {
+void test__f_file_stream_read_until__parameter_checking(void **state) {
f_file_t file = f_file_t_initialize;
- {
- const f_status_t status = f_file_stream_read_until(file, 0, 0);
+ {
+ const f_status_t status = f_file_stream_read_until(file, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- file.size_read = 0;
+ file.size_read = 0;
- {
- const f_status_t status = f_file_stream_read_until(file, 0, 0);
+ {
+ const f_status_t status = f_file_stream_read_until(file, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- f_string_dynamic_t string = f_string_dynamic_t_initialize;
+ {
+ f_string_dynamic_t string = f_string_dynamic_t_initialize;
- const f_status_t status = f_file_stream_read_until(file, 0, &string);
+ const f_status_t status = f_file_stream_read_until(file, 0, &string);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_stream_read_until__returns_file_closed(void **state) {
*
* @see f_file_stream_read_until()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_stream_read_until__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_stream_read_until__parameter_checking(void **state);
/**
* Test that function works but the file stream is closed.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_stream_reopen__parameter_checking(void **state) {
+void test__f_file_stream_reopen__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_stream_reopen(f_string_empty_s, f_string_empty_s, 0);
+ {
+ const f_status_t status = f_file_stream_reopen(f_string_empty_s, f_string_empty_s, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_stream_reopen__returns_data_not(void **state) {
*
* @see f_file_stream_reopen()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_stream_reopen__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_stream_reopen__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_stream_write__parameter_checking(void **state) {
+void test__f_file_stream_write__parameter_checking(void **state) {
- f_file_t file = f_file_t_initialize;
- file.size_write = 0;
+ f_file_t file = f_file_t_initialize;
+ file.size_write = 0;
- {
- const f_status_t status = f_file_stream_write(file, f_string_empty_s, 0);
+ {
+ const f_status_t status = f_file_stream_write(file, f_string_empty_s, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_stream_write__returns_file_closed(void **state) {
*
* @see f_file_stream_write()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_stream_write__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_stream_write__parameter_checking(void **state);
/**
* Test that function works but the file stream is closed.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_stream_write_block__parameter_checking(void **state) {
+void test__f_file_stream_write_block__parameter_checking(void **state) {
- f_file_t file = f_file_t_initialize;
- file.size_write = 0;
+ f_file_t file = f_file_t_initialize;
+ file.size_write = 0;
- {
- const f_status_t status = f_file_stream_write_block(file, f_string_empty_s, 0);
+ {
+ const f_status_t status = f_file_stream_write_block(file, f_string_empty_s, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_stream_write_block__returns_file_closed(void **state) {
*
* @see f_file_stream_write_block()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_stream_write_block__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_stream_write_block__parameter_checking(void **state);
/**
* Test that function works but the file stream is closed.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_stream_write_range__parameter_checking(void **state) {
+void test__f_file_stream_write_range__parameter_checking(void **state) {
- f_file_t file = f_file_t_initialize;
- file.size_write = 0;
+ f_file_t file = f_file_t_initialize;
+ file.size_write = 0;
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_string_range_t range = f_string_range_t_initialize;
- {
- const f_status_t status = f_file_stream_write_range(file, f_string_empty_s, range, 0);
+ {
+ const f_status_t status = f_file_stream_write_range(file, f_string_empty_s, range, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_stream_write_range__returns_file_closed(void **state) {
*
* @see f_file_stream_write_range()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_stream_write_range__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_stream_write_range__parameter_checking(void **state);
/**
* Test that function works but the file stream is closed.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_stream_write_until__parameter_checking(void **state) {
+void test__f_file_stream_write_until__parameter_checking(void **state) {
- f_file_t file = f_file_t_initialize;
- file.size_write = 0;
+ f_file_t file = f_file_t_initialize;
+ file.size_write = 0;
- {
- const f_status_t status = f_file_stream_write_until(file, f_string_empty_s, 0, 0);
+ {
+ const f_status_t status = f_file_stream_write_until(file, f_string_empty_s, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_stream_write_until__returns_file_closed(void **state) {
*
* @see f_file_stream_write_until()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_stream_write_until__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_stream_write_until__parameter_checking(void **state);
/**
* Test that function works but the file stream is closed.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_type__parameter_checking(void **state) {
+void test__f_file_type__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_type(f_string_empty_s, F_true, 0);
+ {
+ const f_status_t status = f_file_type(f_string_empty_s, F_true, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_type__returns_data_not(void **state) {
*
* @see f_file_type()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_type__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_type__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_type_at__parameter_checking(void **state) {
+void test__f_file_type_at__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_type_at(0, f_string_empty_s, 0, 0);
+ {
+ const f_status_t status = f_file_type_at(0, f_string_empty_s, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_type_at__returns_data_not(void **state) {
*
* @see f_file_type_at()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_type_at__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_type_at__parameter_checking(void **state);
/**
* Test that function works but the path is empty.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_umask_get__parameter_checking(void **state) {
+void test__f_file_umask_get__parameter_checking(void **state) {
- {
- const f_status_t status = f_file_umask_get(0);
+ {
+ const f_status_t status = f_file_umask_get(0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_umask_get__works(void **state) {
*
* @see f_file_umask_get()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_umask_get__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_umask_get__parameter_checking(void **state);
/**
* Test that function works.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_write__parameter_checking(void **state) {
+void test__f_file_write__parameter_checking(void **state) {
- f_file_t file = f_file_t_initialize;
- file.size_write = 0;
+ f_file_t file = f_file_t_initialize;
+ file.size_write = 0;
- {
- const f_status_t status = f_file_write(file, f_string_empty_s, 0);
+ {
+ const f_status_t status = f_file_write(file, f_string_empty_s, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_write__returns_file_closed(void **state) {
*
* @see f_file_write()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_write__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_write__parameter_checking(void **state);
/**
* Test that function works but the file is closed.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_write_block__parameter_checking(void **state) {
+void test__f_file_write_block__parameter_checking(void **state) {
- f_file_t file = f_file_t_initialize;
- file.size_write = 0;
+ f_file_t file = f_file_t_initialize;
+ file.size_write = 0;
- {
- const f_status_t status = f_file_write_block(file, f_string_empty_s, 0);
+ {
+ const f_status_t status = f_file_write_block(file, f_string_empty_s, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_write_block__returns_file_closed(void **state) {
*
* @see f_file_write_block()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_write_block__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_write_block__parameter_checking(void **state);
/**
* Test that function works but the file is closed.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_write_range__parameter_checking(void **state) {
+void test__f_file_write_range__parameter_checking(void **state) {
- f_file_t file = f_file_t_initialize;
- file.size_write = 0;
+ f_file_t file = f_file_t_initialize;
+ file.size_write = 0;
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_string_range_t range = f_string_range_t_initialize;
- {
- const f_status_t status = f_file_write_range(file, f_string_empty_s, range, 0);
+ {
+ const f_status_t status = f_file_write_range(file, f_string_empty_s, range, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_write_range__returns_file_closed(void **state) {
*
* @see f_file_write_range()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_write_range__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_write_range__parameter_checking(void **state);
/**
* Test that function works but the file is closed.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_file_write_until__parameter_checking(void **state) {
+void test__f_file_write_until__parameter_checking(void **state) {
- f_file_t file = f_file_t_initialize;
- file.size_write = 0;
+ f_file_t file = f_file_t_initialize;
+ file.size_write = 0;
- {
- const f_status_t status = f_file_write_until(file, f_string_empty_s, 0, 0);
+ {
+ const f_status_t status = f_file_write_until(file, f_string_empty_s, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_file_write_until__returns_file_closed(void **state) {
*
* @see f_file_write_until()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_file_write_until__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_file_write_until__parameter_checking(void **state);
/**
* Test that function works but the file is closed.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_iki_content_is__parameter_checking(void **state) {
+void test__f_iki_content_is__parameter_checking(void **state) {
- {
- const f_status_t status = f_iki_content_is(f_string_empty_s, f_string_empty_s);
+ {
+ const f_status_t status = f_iki_content_is(f_string_empty_s, f_string_empty_s);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_iki_content_is__returns_data_not(void **state) {
*
* @see f_iki_content_is()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_iki_content_is__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_iki_content_is__parameter_checking(void **state);
/**
* Test that function returns F_data_not.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_iki_content_partial_is__parameter_checking(void **state) {
+void test__f_iki_content_partial_is__parameter_checking(void **state) {
- {
- const f_string_range_t range = f_string_range_t_initialize;
+ {
+ const f_string_range_t range = f_string_range_t_initialize;
- const f_status_t status = f_iki_content_partial_is(f_string_empty_s, range, f_string_empty_s);
+ const f_status_t status = f_iki_content_partial_is(f_string_empty_s, range, f_string_empty_s);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_iki_content_partial_is__returns_data_not(void **state) {
*
* @see f_iki_content_partial_is()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_iki_content_partial_is__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_iki_content_partial_is__parameter_checking(void **state);
/**
* Test that function returns F_data_not.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_iki_read__parameter_checking(void **state) {
+void test__f_iki_read__parameter_checking(void **state) {
- const f_state_t the_state = f_state_t_initialize;
- f_string_static_t empty = macro_f_string_static_t_initialize(f_string_empty_s.string, f_string_empty_s.size, f_string_empty_s.used);
+ const f_state_t the_state = f_state_t_initialize;
+ f_string_static_t empty = macro_f_string_static_t_initialize(f_string_empty_s.string, f_string_empty_s.size, f_string_empty_s.used);
- {
- f_string_range_t range = f_string_range_t_initialize;
- f_iki_data_t iki = f_iki_data_t_initialize;
+ {
+ f_string_range_t range = f_string_range_t_initialize;
+ f_iki_data_t iki = f_iki_data_t_initialize;
- const f_status_t status = f_iki_read(the_state, 0, &range, &iki);
+ const f_status_t status = f_iki_read(the_state, 0, &range, &iki);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- f_iki_data_t iki = f_iki_data_t_initialize;
+ {
+ f_iki_data_t iki = f_iki_data_t_initialize;
- const f_status_t status = f_iki_read(the_state, &empty, 0, &iki);
+ const f_status_t status = f_iki_read(the_state, &empty, 0, &iki);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- f_string_range_t range = f_string_range_t_initialize;
+ {
+ f_string_range_t range = f_string_range_t_initialize;
- const f_status_t status = f_iki_read(the_state, &empty, &range, 0);
+ const f_status_t status = f_iki_read(the_state, &empty, &range, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_iki_read__returns_data_not(void **state) {
*
* @see f_iki_read()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_iki_read__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_iki_read__parameter_checking(void **state);
/**
* Test that function returns F_data_not.
} // for
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_limit_process__parameter_checking(void **state) {
+void test__f_limit_process__parameter_checking(void **state) {
- {
- const f_status_t status = f_limit_process(1, 1, 0, 0);
+ {
+ const f_status_t status = f_limit_process(1, 1, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_limit_process__works(void **state) {
*
* @see f_limit_process()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_limit_process__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_limit_process__parameter_checking(void **state);
/**
* Test that function works.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_memory_adjust__parameter_checking(void **state) {
+void test__f_memory_adjust__parameter_checking(void **state) {
- {
- const f_status_t status = f_memory_adjust(1, 4, 0, 0);
+ {
+ const f_status_t status = f_memory_adjust(1, 4, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- const f_status_t status = f_memory_adjust(1, 4, 1, 0);
+ {
+ const f_status_t status = f_memory_adjust(1, 4, 1, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_memory_adjust__works(void **state) {
*
* @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_
+extern void test__f_memory_adjust__parameter_checking(void **state);
/**
* Test that reallocation works.
}
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_memory_delete__parameter_checking(void **state) {
+void test__f_memory_delete__parameter_checking(void **state) {
- {
- const f_status_t status = f_memory_delete(4, 0, 0);
+ {
+ const f_status_t status = f_memory_delete(4, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
#ifdef __cplusplus
} // extern "C"
*
* @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_
+extern void test__f_memory_delete__parameter_checking(void **state);
#endif // _TEST__F_memory__delete
}
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_memory_destroy__parameter_checking(void **state) {
+void test__f_memory_destroy__parameter_checking(void **state) {
- {
- const f_status_t status = f_memory_destroy(4, 0, 0);
+ {
+ const f_status_t status = f_memory_destroy(4, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
#ifdef __cplusplus
} // extern "C"
*
* @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_
+extern void test__f_memory_destroy__parameter_checking(void **state);
#endif // _TEST__F_memory__destroy
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_memory_new__parameter_checking(void **state) {
+void test__f_memory_new__parameter_checking(void **state) {
- {
- const f_status_t status = f_memory_new(1, 0, 0);
+ {
+ const f_status_t status = f_memory_new(1, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_memory_new__works(void **state) {
*
* @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_
+extern void test__f_memory_new__parameter_checking(void **state);
/**
* Test that allocation works.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_memory_new_aligned__parameter_checking(void **state) {
+void test__f_memory_new_aligned__parameter_checking(void **state) {
- {
- const f_status_t status = f_memory_new_aligned(1, 0, 0);
+ {
+ const f_status_t status = f_memory_new_aligned(1, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_memory_new_aligned__works(void **state) {
*
* @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_
+extern void test__f_memory_new_aligned__parameter_checking(void **state);
/**
* Test that allocation works.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_memory_resize__parameter_checking(void **state) {
+void test__f_memory_resize__parameter_checking(void **state) {
- {
- const f_status_t status = f_memory_resize(1, 4, 0, 0);
+ {
+ const f_status_t status = f_memory_resize(1, 4, 0, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
- {
- const f_status_t status = f_memory_resize(1, 4, 1, 0);
+ {
+ const f_status_t status = f_memory_resize(1, 4, 1, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_memory_resize__works(void **state) {
*
* @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_
+extern void test__f_memory_resize__parameter_checking(void **state);
/**
* Test that reallocation works.
f_string_dynamic_resize(0, &destination);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_path_current__parameter_checking(void **state) {
+void test__f_path_current__parameter_checking(void **state) {
- {
- const f_status_t status = f_path_current(F_false, 0);
+ {
+ const f_status_t status = f_path_current(F_false, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_path_current__works(void **state) {
*
* @see f_path_current()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_path_current__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_path_current__parameter_checking(void **state);
/**
* Test that function works.
extern "C" {
#endif
-#ifndef _di_level_0_parameter_checking_
- void test__f_path_directory_cleanup__parameter_checking(void **state) {
+void test__f_path_directory_cleanup__parameter_checking(void **state) {
- const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
+ const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
- {
- const f_status_t status = f_path_directory_cleanup(path, 0);
+ {
+ const f_status_t status = f_path_directory_cleanup(path, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_path_directory_cleanup__works(void **state) {
*
* @see f_path_directory_cleanup()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_path_directory_cleanup__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_path_directory_cleanup__parameter_checking(void **state);
/**
* Test that function works.
f_string_dynamic_resize(0, &destination);
}
-#ifndef _di_level_0_parameter_checking_
- void test__f_path_real__parameter_checking(void **state) {
+void test__f_path_real__parameter_checking(void **state) {
- const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
+ const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
- {
- const f_status_t status = f_path_real(path, 0);
+ {
+ const f_status_t status = f_path_real(path, 0);
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
+ assert_int_equal(status, F_status_set_error(F_parameter));
}
-#endif // _di_level_0_parameter_checking_
+}
void test__f_path_real__works(void **state) {
*
* @see f_path_real()
*/
-#ifndef _di_level_0_parameter_checking_
- extern void test__f_path_real__parameter_checking(void **state);
-#endif // _di_level_0_parameter_checking_
+extern void test__f_path_real__parameter_checking(void **state);
/**
* Test that function works.