diff options
author | EuAndreh <eu@euandre.org> | 2021-08-24 18:02:11 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-08-24 18:02:11 -0300 |
commit | caaa0a86385b1a647667ac75845651b335573e9c (patch) | |
tree | 3876a7dca2d85dde5e121719168fc60898a5b5e1 /src | |
parent | TODOs.md: Add #task-4202ee33-1344-0854-c970-89664066b029 (diff) | |
download | gistatic-caaa0a86385b1a647667ac75845651b335573e9c.tar.gz gistatic-caaa0a86385b1a647667ac75845651b335573e9c.tar.xz |
src/lib.c: Move unit_tests_gistatic to the end of the file
Diffstat (limited to '')
-rw-r--r-- | src/lib.c | 38 |
1 files changed, 19 insertions, 19 deletions
@@ -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 |