pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
Functions | Variables
pcmk__xe_match_test.c File Reference
#include <crm_internal.h>
#include <crm/msg_xml.h>
#include <crm/common/unittest_internal.h>
#include <crm/common/xml_internal.h>
Include dependency graph for pcmk__xe_match_test.c:

Go to the source code of this file.

Functions

 PCMK__UNIT_TEST (NULL, NULL, 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 ( NULL  ,
NULL  ,
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\" " XML_ATTR_ID "=\"1\">\n"
" content\n"
" </nodeA>\n"
" <!-- This is an A node -->\n"
" <nodeA attrA=\"456\" " XML_ATTR_ID "=\"2\">\n"
" content\n"
" </nodeA>\n"
" <!-- This is an A node -->\n"
" <nodeA attrB=\"XYZ\" " XML_ATTR_ID "=\"3\">\n"
" content\n"
" </nodeA>\n"
" <!-- This is a B node -->\n"
" <nodeB attrA=\"123\" " XML_ATTR_ID "=\"4\">\n"
" content\n"
" </nodeA>\n"
" <!-- This is a B node -->\n"
" <nodeB attrB=\"ABC\" " XML_ATTR_ID "=\"5\">\n"
" content\n"
" </nodeA>\n"
"</xml>"
#define XML_ATTR_ID
Definition: msg_xml.h:156

Definition at line 16 of file pcmk__xe_match_test.c.