pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
Functions | Variables
pcmk__xe_first_child_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_first_child_test.c:

Go to the source code of this file.

Functions

 PCMK__UNIT_TEST (pcmk__xml_test_setup_group, pcmk__xml_test_teardown_group, cmocka_unit_test(bad_input), cmocka_unit_test(not_found), cmocka_unit_test(find_attrB), cmocka_unit_test(find_attrA_matching))
 

Variables

const char * str1
 

Function Documentation

◆ PCMK__UNIT_TEST()

PCMK__UNIT_TEST ( pcmk__xml_test_setup_group  ,
pcmk__xml_test_teardown_group  ,
cmocka_unit_test(bad_input)  ,
cmocka_unit_test(not_found)  ,
cmocka_unit_test(find_attrB)  ,
cmocka_unit_test(find_attrA_matching)   
)

Variable Documentation

◆ str1

const char* str1
Initial value:
=
"<xml>\n"
" <!-- This is an A node -->\n"
" <nodeA attrA=\"123\" " PCMK_XA_ID "=\"1\">\n"
" content\n"
" </nodeA>\n"
" <!-- This is an A node -->\n"
" <nodeA attrA=\"456\" " PCMK_XA_ID "=\"2\">\n"
" content\n"
" </nodeA>\n"
" <!-- This is an A node -->\n"
" <nodeA attrB=\"XYZ\" " PCMK_XA_ID "=\"3\">\n"
" content\n"
" </nodeA>\n"
" <!-- This is a B node -->\n"
" <nodeB attrA=\"123\" " PCMK_XA_ID "=\"4\">\n"
" content\n"
" </nodeB>\n"
" <!-- This is a B node -->\n"
" <nodeB attrB=\"ABC\" " PCMK_XA_ID "=\"5\">\n"
" content\n"
" </nodeB>\n"
"</xml>"
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 16 of file pcmk__xe_first_child_test.c.