pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
pcmk__xe_dereference_children_test.c File Reference
#include <crm_internal.h>
#include <glib.h>
#include <crm/common/unittest_internal.h>
#include <crm/common/xml_internal.h>
Include dependency graph for pcmk__xe_dereference_children_test.c:

Go to the source code of this file.

Macros

#define XML_NO_CHILDREN   "<xml><test/></xml>"
 
#define XML_NO_ELEMENT_CHILDREN   "<xml><test><!-- comment -->text</test></xml>"
 
#define XML_NO_IDREF
 
#define XML_WITH_IDREF
 
#define XML_WITH_BROKEN_IDREF
 

Macro Definition Documentation

◆ XML_NO_CHILDREN

#define XML_NO_CHILDREN   "<xml><test/></xml>"

Definition at line 85 of file pcmk__xe_dereference_children_test.c.

◆ XML_NO_ELEMENT_CHILDREN

#define XML_NO_ELEMENT_CHILDREN   "<xml><test><!-- comment -->text</test></xml>"

Definition at line 86 of file pcmk__xe_dereference_children_test.c.

◆ XML_NO_IDREF

#define XML_NO_IDREF
Value:
"<xml>\n" \
" <test>\n" \
" <!-- comment -->\n" \
" <other id='other1' testattr='othervalue1' />\n" \
" <child id='child1' testattr='childvalue1' />\n" \
" <other id='other2' testattr='othervalue2' />\n" \
" <child id='child2' testattr='childvalue2' />\n" \
" <child id='child3' testattr='childvalue3' />\n" \
" <other id='other3' testattr='othervalue3' />\n" \
" </test>\n" \
"</xml>\n"

Definition at line 97 of file pcmk__xe_dereference_children_test.c.

◆ XML_WITH_BROKEN_IDREF

#define XML_WITH_BROKEN_IDREF
Value:
"<xml>\n" \
" <test>\n" \
" <!-- comment -->\n" \
" <other id-ref='other1'/>\n" \
" <child id='child1' testattr='childvalue1' />\n" \
" <other id='other2' testattr='othervalue2' />\n" \
" <child id-ref='child2' />\n" \
" <child id='child3' testattr='childvalue3' />\n" \
" <other id='other3' testattr='othervalue3' />\n" \
" </test>\n" \
"</xml>\n"

Definition at line 157 of file pcmk__xe_dereference_children_test.c.

◆ XML_WITH_IDREF

#define XML_WITH_IDREF
Value:
"<xml>\n" \
" <other id='other1' testattr='othervalue1' />\n" \
" <child id='child2' testattr='childvalue2' />\n" \
" <test>\n" \
" <!-- comment -->\n" \
" <other id-ref='other1'/>\n" \
" <child id='child1' testattr='childvalue1' />\n" \
" <other id='other2' testattr='othervalue2' />\n" \
" <child id-ref='child2' />\n" \
" <child id='child3' testattr='childvalue3' />\n" \
" <other id='other3' testattr='othervalue3' />\n" \
" </test>\n" \
"</xml>\n"

Definition at line 126 of file pcmk__xe_dereference_children_test.c.