17 target_is_NULL(
void **state)
20 xmlNode *test_xml_2 = NULL;
26 assert_ptr_equal(test_xml_2, NULL);
30 src_is_NULL(
void **state)
32 xmlNode *test_xml_1 = NULL;
37 assert_ptr_equal(test_xml_2->properties, NULL);
41 copying_is_successful(
void **state)
43 const char *xml_1_value;
44 const char *xml_2_value;
56 assert_string_equal(xml_1_value, xml_2_value);
60 cmocka_unit_test(target_is_NULL),
61 cmocka_unit_test(src_is_NULL),
62 cmocka_unit_test(copying_is_successful))
void copy_in_properties(xmlNode *target, const xmlNode *src)
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))
const char * crm_element_value(const xmlNode *data, const char *name)
Retrieve the value of an XML attribute.
xmlNode * create_xml_node(xmlNode *parent, const char *name)
void pcmk__xe_set_props(xmlNodePtr node,...) G_GNUC_NULL_TERMINATED