16 empty_input(
void **state)
30 attr_missing(
void **state)
32 xmlNode *node =
string2xml(
"<node a=\"true\" b=\"false\"/>");
40 attr_present(
void **state)
42 xmlNode *node =
string2xml(
"<node a=\"true\" b=\"false\" c=\"blah\"/>");
57 cmocka_unit_test(empty_input),
58 cmocka_unit_test(attr_missing),
59 cmocka_unit_test(attr_present))
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)
int pcmk__xe_get_bool_attr(const xmlNode *node, const char *name, bool *value)
void free_xml(xmlNode *child)