16 empty_input(
void **state)
28 attr_missing(
void **state)
30 xmlNode *node =
string2xml(
"<node a=\"true\" b=\"false\"/>");
37 attr_present(
void **state)
39 xmlNode *node =
string2xml(
"<node a=\"true\" b=\"false\"/>");
48 cmocka_unit_test(empty_input),
49 cmocka_unit_test(attr_missing),
50 cmocka_unit_test(attr_present))
bool pcmk__xe_attr_is_true(const xmlNode *node, const char *name)
PCMK__UNIT_TEST(NULL, NULL, cmocka_unit_test(bad_input), cmocka_unit_test(not_found), cmocka_unit_test(find_attrB), cmocka_unit_test(find_attrA_matching))
xmlNode * string2xml(const char *input)
void free_xml(xmlNode *child)