pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Macros | Functions
pcmk__add_time_from_xml_test.c File Reference
#include <crm_internal.h>
#include <libxml/tree.h>
#include <crm/common/unittest_internal.h>
#include <crm/common/iso8601.h>
#include <crm/common/iso8601_internal.h>
#include <crm/common/xml.h>
#include "../../crmcommon_private.h"
Include dependency graph for pcmk__add_time_from_xml_test.c:

Go to the source code of this file.

Macros

#define ALL_VALID
 
#define YEARS_INVALID   "<duration id=\"duration1\" years=\"not-a-number\" />"
 
#define YEARS_TOO_BIG   "<duration id=\"duration1\" years=\"2222222222\" />"
 
#define YEARS_TOO_SMALL   "<duration id=\"duration1\" years=\"-2222222222\" />"
 

Functions

 PCMK__UNIT_TEST (pcmk__xml_test_setup_group, pcmk__xml_test_teardown_group, cmocka_unit_test(null_time_invalid), cmocka_unit_test(null_xml_ok), cmocka_unit_test(invalid_component), cmocka_unit_test(missing_attr), cmocka_unit_test(invalid_attr), cmocka_unit_test(out_of_range_attr), cmocka_unit_test(add_years), cmocka_unit_test(add_months), cmocka_unit_test(add_weeks), cmocka_unit_test(add_days), cmocka_unit_test(add_hours), cmocka_unit_test(add_minutes), cmocka_unit_test(add_seconds))
 

Macro Definition Documentation

◆ ALL_VALID

#define ALL_VALID
Value:
"<duration id=\"duration1\" years=\"1\" months=\"2\" " \
"weeks=\"3\" days=\"-1\" hours=\"1\" minutes=\"1\" " \
"seconds=\"1\" />"

Definition at line 21 of file pcmk__add_time_from_xml_test.c.

◆ YEARS_INVALID

#define YEARS_INVALID   "<duration id=\"duration1\" years=\"not-a-number\" />"

Definition at line 25 of file pcmk__add_time_from_xml_test.c.

◆ YEARS_TOO_BIG

#define YEARS_TOO_BIG   "<duration id=\"duration1\" years=\"2222222222\" />"

Definition at line 27 of file pcmk__add_time_from_xml_test.c.

◆ YEARS_TOO_SMALL

#define YEARS_TOO_SMALL   "<duration id=\"duration1\" years=\"-2222222222\" />"

Definition at line 29 of file pcmk__add_time_from_xml_test.c.

Function Documentation

◆ PCMK__UNIT_TEST()

PCMK__UNIT_TEST ( pcmk__xml_test_setup_group  ,
pcmk__xml_test_teardown_group  ,
cmocka_unit_test(null_time_invalid)  ,
cmocka_unit_test(null_xml_ok)  ,
cmocka_unit_test(invalid_component)  ,
cmocka_unit_test(missing_attr)  ,
cmocka_unit_test(invalid_attr)  ,
cmocka_unit_test(out_of_range_attr)  ,
cmocka_unit_test(add_years)  ,
cmocka_unit_test(add_months)  ,
cmocka_unit_test(add_weeks)  ,
cmocka_unit_test(add_days)  ,
cmocka_unit_test(add_hours)  ,
cmocka_unit_test(add_minutes)  ,
cmocka_unit_test(add_seconds)   
)