common/test_util.c: Format with clang-format
BRANCH=none
TEST=none
@@ -29,16 +29,24 @@ struct test_util_tag {
int __test_error_count;
/* Weak reference function as an entry point for unit test */
-test_mockable void run_test(int argc, char **argv) { }
+test_mockable void run_test(int argc, char **argv)
+{
+}
/* Default mock test init */
-test_mockable void test_init(void) { }
+test_mockable void test_init(void)
+{
+}
/* Default mock before test */
-test_mockable void before_test(void) { }
+test_mockable void before_test(void)
+{
+}
/* Default mock after test */
-test_mockable void after_test(void) { }
+test_mockable void after_test(void)
+{
+}
#ifdef TEST_COVERAGE
extern void __gcov_flush(void);
@@ -188,8 +196,7 @@ static void restore_state(void)
tag = (const struct test_util_tag *)system_get_jump_tag(
TEST_UTIL_SYSJUMP_TAG, &version, &size);
- if (tag && version == TEST_UTIL_SYSJUMP_VERSION &&
- size == sizeof(*tag))
+ if (tag && version == TEST_UTIL_SYSJUMP_VERSION && size == sizeof(*tag))
__test_error_count = tag->error_count;
else
__test_error_count = 0;
@@ -210,8 +217,7 @@ static int command_run_test(int argc, char **argv)
run_test(argc, argv);
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND(runtest, command_run_test,
- NULL, NULL);
+DECLARE_CONSOLE_COMMAND(runtest, command_run_test, NULL, NULL);
#ifndef CONFIG_ZEPHYR
void z_ztest_run_test_suite(const char *name, struct unit_test *suite)
