From caaa0a86385b1a647667ac75845651b335573e9c Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 24 Aug 2021 18:02:11 -0300 Subject: src/lib.c: Move unit_tests_gistatic to the end of the file --- src/lib.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'src/lib.c') diff --git a/src/lib.c b/src/lib.c index 82d2720..b2f31f3 100644 --- a/src/lib.c +++ b/src/lib.c @@ -2224,25 +2224,6 @@ cleanup: return ret; } -#ifdef TEST -void unit_tests_gistatic(void) { - dump_translatable_strings(); - - git_libgit2_init(); - test_underscore(); - test_remove_suffix(); - test_strjoin(); - test_strsjoin(); - test_formatted_date(); - test_max(); - test_escape_html(); - test_should_trim(); - test_strtrim(); - test_last_commit_date(); - git_libgit2_shutdown(); -} -#endif - int gistatic_main(int argc, char *argv[]) { int ret = EXIT_SUCCESS; bool cleanup_libgit = false; @@ -2362,3 +2343,22 @@ cleanup: } return ret; } + +#ifdef TEST +void unit_tests_gistatic(void) { + dump_translatable_strings(); + + git_libgit2_init(); + test_underscore(); + test_remove_suffix(); + test_strjoin(); + test_strsjoin(); + test_formatted_date(); + test_max(); + test_escape_html(); + test_should_trim(); + test_strtrim(); + test_last_commit_date(); + git_libgit2_shutdown(); +} +#endif -- cgit v1.2.3