22 empty_input(
void **state)
34 attr_missing(
void **state)
36 xmlNode *node =
string2xml(
"<node a=\"true\" b=\"false\"/>");
43 attr_present(
void **state)
45 xmlNode *node =
string2xml(
"<node a=\"true\" b=\"false\"/>");
54 main(
int argc,
char **argv)
56 const struct CMUnitTest tests[] = {
57 cmocka_unit_test(empty_input),
58 cmocka_unit_test(attr_missing),
59 cmocka_unit_test(attr_present),
62 cmocka_set_message_output(CM_OUTPUT_TAP);
63 return cmocka_run_group_tests(tests, NULL, NULL);
int main(int argc, char **argv)
xmlNode * string2xml(const char *input)
void free_xml(xmlNode *child)
bool pcmk__xe_attr_is_true(xmlNodePtr node, const char *name)