17 empty_input(
void **state) {
26 no_quotes(
void **state) {
32 not_present(
void **state) {
33 const char *xpath =
"/some/xpath/string[@" PCMK_XA_ID "='xyz']";
41 present(
void **state) {
43 const char *xpath =
"/some/xpath/containing" 47 assert_int_equal(strcmp(s,
"xyz"), 0);
52 assert_int_equal(strcmp(s,
"xyz"), 0);
57 cmocka_unit_test(empty_input),
58 cmocka_unit_test(no_quotes),
59 cmocka_unit_test(not_present),
60 cmocka_unit_test(present))
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)
char * pcmk__xpath_node_id(const char *xpath, const char *node)
Wrappers for and extensions to libxml2.
#define pcmk__assert_asserts(stmt)