pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
Macros | Functions
pcmk__xe_next_test.c File Reference
#include <crm_internal.h>
#include <crm/common/xml.h>
#include <crm/common/unittest_internal.h>
#include <crm/common/xml_internal.h>
Include dependency graph for pcmk__xe_next_test.c:

Go to the source code of this file.

Macros

#define XML_NO_SIBLINGS
 
#define XML_SIBLINGS
 

Functions

 PCMK__UNIT_TEST (pcmk__xml_test_setup_group, pcmk__xml_test_teardown_group, cmocka_unit_test(null_xml), cmocka_unit_test(no_siblings), cmocka_unit_test(with_siblings))
 

Macro Definition Documentation

◆ XML_NO_SIBLINGS

#define XML_NO_SIBLINGS
Value:
"<xml>\n" \
" <!-- comment -->" \
" <foo id='child1'>text</foo>" \
" <!-- another comment -->" \
"</xml>"

Definition at line 24 of file pcmk__xe_next_test.c.

◆ XML_SIBLINGS

#define XML_SIBLINGS
Value:
"<xml>\n" \
" <!-- comment -->" \
" <foo id='child1'>text</foo>" \
" <!-- another comment -->" \
" <bar id='child2'>text</bar>" \
" <!-- yet another comment -->" \
" <foo id='child3'>text</foo>" \
"</xml>"

Definition at line 49 of file pcmk__xe_next_test.c.

Function Documentation

◆ PCMK__UNIT_TEST()

PCMK__UNIT_TEST ( pcmk__xml_test_setup_group  ,
pcmk__xml_test_teardown_group  ,
cmocka_unit_test(null_xml)  ,
cmocka_unit_test(no_siblings)  ,
cmocka_unit_test(with_siblings)   
)