18 " <!-- This is an A node -->\n" 22 " <!-- This is an A node -->\n" 26 " <!-- This is an A node -->\n" 30 " <!-- This is a B node -->\n" 34 " <!-- This is a B node -->\n" 41 bad_input(
void **state) {
51 not_found(
void **state) {
67 find_attrB(
void **state) {
85 find_attrA_matching(
void **state) {
103 cmocka_unit_test(bad_input),
104 cmocka_unit_test(not_found),
105 cmocka_unit_test(find_attrB),
106 cmocka_unit_test(find_attrA_matching));
xmlNode * pcmk__xe_match(const xmlNode *parent, const char *node_name, const char *attr_n, const char *attr_v)
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)
const char * crm_element_value(const xmlNode *data, const char *name)
Retrieve the value of an XML attribute.
void free_xml(xmlNode *child)
pcmk__action_result_t result