17 empty_input_list(
void) {
28 list = g_list_prepend(list, (gpointer)
"xxx");
42 list = g_list_prepend(list, (gpointer)
"*");
55 star_doesnt_match(
void) {
58 list = g_list_prepend(list, (gpointer)
"*");
59 list = g_list_append(list, (gpointer)
"more");
73 list = g_list_prepend(list, (gpointer)
"xxx");
74 list = g_list_prepend(list, (gpointer)
"yyy");
75 list = g_list_prepend(list, (gpointer)
"zzz");
91 list = g_list_prepend(list, (gpointer)
"xxx");
92 list = g_list_prepend(list, (gpointer)
"yyy");
102 int main(
int argc,
char **argv)
104 g_test_init(&argc, &argv, NULL);
106 g_test_add_func(
"/common/strings/in_list/empty_list", empty_input_list);
107 g_test_add_func(
"/common/strings/in_list/empty_string", empty_string);
108 g_test_add_func(
"/common/strings/in_list/star_matches", star_matches);
109 g_test_add_func(
"/common/strings/in_list/star_doesnt_match", star_doesnt_match);
110 g_test_add_func(
"/common/strings/in_list/in", in_list);
111 g_test_add_func(
"/common/strings/in_list/not_in", not_in_list);
gboolean pcmk__str_in_list(GList *lst, const gchar *s, uint32_t flags)
int main(int argc, char **argv)