tests MAINTENANCE source code formatting
diff --git a/tests/utests/schema/test_printer_yin.c b/tests/utests/schema/test_printer_yin.c
index dcb5925..3688faa 100644
--- a/tests/utests/schema/test_printer_yin.c
+++ b/tests/utests/schema/test_printer_yin.c
@@ -12,20 +12,12 @@
* https://opensource.org/licenses/BSD-3-Clause
*/
-#include <stdarg.h>
-#include <stddef.h>
-#include <setjmp.h>
-#include <cmocka.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include "common.h"
#include "context.h"
#include "out.h"
#include "printer_schema.h"
#include "tree_schema.h"
+#include "utests.h"
#define BUFSIZE 1024
char logbuf[BUFSIZE] = {0};
@@ -50,6 +42,7 @@
}
}
}
+
#endif
static int
@@ -94,7 +87,7 @@
struct ly_ctx *ctx = {0};
const struct lys_module *mod;
- const char * orig =
+ const char *orig =
"module all {\n"
" yang-version 1.1;\n"
" namespace \"urn:all\";\n"
@@ -332,7 +325,7 @@
" }\n"
"}\n";
- const char * ori_res =
+ const char *ori_res =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<module name=\"all\"\n"
" xmlns=\"urn:ietf:params:xml:ns:yang:yin:1\"\n"
@@ -596,9 +589,10 @@
ly_ctx_destroy(ctx, NULL);
}
-static LY_ERR test_imp_clb(const char *UNUSED(mod_name), const char *UNUSED(mod_rev), const char *UNUSED(submod_name),
- const char *UNUSED(sub_rev), void *user_data, LYS_INFORMAT *format,
- const char **module_data, void (**free_module_data)(void *model_data, void *user_data))
+static LY_ERR
+test_imp_clb(const char *UNUSED(mod_name), const char *UNUSED(mod_rev), const char *UNUSED(submod_name),
+ const char *UNUSED(sub_rev), void *user_data, LYS_INFORMAT *format,
+ const char **module_data, void (**free_module_data)(void *model_data, void *user_data))
{
*module_data = user_data;
*format = LYS_IN_YIN;
@@ -664,7 +658,8 @@
ly_ctx_destroy(ctx, NULL);
}
-int main(void)
+int
+main(void)
{
const struct CMUnitTest tests[] = {
cmocka_unit_test_setup_teardown(test_module, logger_setup, logger_teardown),
@@ -673,4 +668,3 @@
return cmocka_run_group_tests(tests, NULL, NULL);
}
-