Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sat, 20 Apr 2024 17:46:39 UTC Commit: 679d79f9870ea37802598634c6e3fc6c905725de https://github.com/geany/geany/commit/679d79f9870ea37802598634c6e3fc6c905725...
Log Message: ----------- tests: Mark several functions static
Modified Paths: -------------- tests/test_sidebar.c tests/test_utils.c
Modified: tests/test_sidebar.c 8 lines changed, 4 insertions(+), 4 deletions(-) =================================================================== @@ -52,7 +52,7 @@ static gboolean tree_strings_cb(GtkTreeModel *model, GtkTreePath *path, return FALSE; }
-void do_test_sidebar_openfiles(const gchar **test_data, const gchar **expected) +static void do_test_sidebar_openfiles(const gchar **test_data, const gchar **expected) { #ifdef HAVE_G_STRV_EQUAL int count = 0; @@ -72,7 +72,7 @@ void do_test_sidebar_openfiles(const gchar **test_data, const gchar **expected) #endif }
-void test_sidebar_openfiles_none(void) +static void test_sidebar_openfiles_none(void) { const gchar *files[] = { "/tmp/x", @@ -92,7 +92,7 @@ void test_sidebar_openfiles_none(void) }
-void test_sidebar_openfiles_path(void) +static void test_sidebar_openfiles_path(void) { const gchar *files[] = { "/tmp/x", @@ -114,7 +114,7 @@ void test_sidebar_openfiles_path(void) }
-void test_sidebar_openfiles_tree(void) +static void test_sidebar_openfiles_tree(void) { const gchar *files[] = { "/tmp/x",
Modified: tests/test_utils.c 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -107,7 +107,7 @@ static void test_utils_strv_find_common_prefix(void) }
#define DIR_SEP "\/" -void test_utils_strv_find_lcs(void) +static void test_utils_strv_find_lcs(void) { gchar **data, *s;
@@ -291,7 +291,7 @@ static gboolean strv_eq(gchar **strv1, gchar **strv2) } }
-void test_utils_strv_shorten_file_list(void) +static void test_utils_strv_shorten_file_list(void) { gchar **data, **expected, **result; gchar *empty[] = { NULL };
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).