17 bad_input(
void **state) {
36 expected_input(
void **state) {
41 assert_string_equal(
"somenode",
45 assert_int_equal(i, 47);
51 repeated_use(
void **state) {
63 assert_int_equal(i, 3);
69 cmocka_unit_test(bad_input),
70 cmocka_unit_test(expected_input),
71 cmocka_unit_test(repeated_use))
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)
int crm_element_value_int(const xmlNode *data, const char *name, int *dest)
Retrieve the integer value of an XML attribute.
#define PCMK__XA_ATTR_HOST_ID
const char * crm_element_value(const xmlNode *data, const char *name)
Retrieve the value of an XML attribute.
int pcmk__xml_test_setup_group(void **state)
Wrappers for and extensions to libxml2.
#define pcmk__assert_asserts(stmt)
void free_xml(xmlNode *child)
int pcmk__xml_test_teardown_group(void **state)
const xmlChar * pcmkXmlStr
#define PCMK__XA_ATTR_HOST
void pcmk__xe_add_node(xmlNode *xml, const char *node, int nodeid)
xmlNode * pcmk__xe_create(xmlNode *parent, const char *name)