aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-08-24 18:02:11 -0300
committerEuAndreh <eu@euandre.org>2021-08-24 18:02:11 -0300
commitcaaa0a86385b1a647667ac75845651b335573e9c (patch)
tree3876a7dca2d85dde5e121719168fc60898a5b5e1 /src
parentTODOs.md: Add #task-4202ee33-1344-0854-c970-89664066b029 (diff)
downloadgistatic-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.c38
1 files changed, 19 insertions, 19 deletions
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