23 empty_input(
void **state)
37 attr_missing(
void **state)
39 xmlNode *node =
string2xml(
"<node a=\"true\" b=\"false\"/>");
47 attr_present(
void **state)
49 xmlNode *node =
string2xml(
"<node a=\"true\" b=\"false\" c=\"blah\"/>");
64 main(
int argc,
char **argv)
66 const struct CMUnitTest tests[] = {
67 cmocka_unit_test(empty_input),
68 cmocka_unit_test(attr_missing),
69 cmocka_unit_test(attr_present),
72 cmocka_set_message_output(CM_OUTPUT_TAP);
73 return cmocka_run_group_tests(tests, NULL, NULL);
xmlNode * string2xml(const char *input)
int pcmk__xe_get_bool_attr(xmlNodePtr node, const char *name, bool *value)
int main(int argc, char **argv)
void free_xml(xmlNode *child)
Function and executable result codes.