Skip to content

Commit

Permalink
tests: Mark several functions static
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Apr 20, 2024
1 parent 548c971 commit 679d79f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tests/test_sidebar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 };
Expand Down

0 comments on commit 679d79f

Please sign in to comment.