17 empty_input_list(
void **state) {
25 empty_string(
void **state) {
28 list = g_list_prepend(list, (gpointer)
"xxx");
39 star_matches(
void **state) {
42 list = g_list_prepend(list, (gpointer)
"*");
43 list = g_list_append(list, (gpointer)
"more");
54 star_doesnt_match(
void **state) {
57 list = g_list_prepend(list, (gpointer)
"*");
69 in_list(
void **state) {
72 list = g_list_prepend(list, (gpointer)
"xxx");
73 list = g_list_prepend(list, (gpointer)
"yyy");
74 list = g_list_prepend(list, (gpointer)
"zzz");
87 not_in_list(
void **state) {
90 list = g_list_prepend(list, (gpointer)
"xxx");
91 list = g_list_prepend(list, (gpointer)
"yyy");
102 cmocka_unit_test(empty_input_list),
103 cmocka_unit_test(empty_string),
104 cmocka_unit_test(star_matches),
105 cmocka_unit_test(star_doesnt_match),
106 cmocka_unit_test(in_list),
107 cmocka_unit_test(not_in_list))
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)
gboolean pcmk__str_in_list(const gchar *s, const GList *lst, uint32_t flags)