syslog-ng source
test_xml_scanner.c File Reference
#include <criterion/criterion.h>
#include <criterion/parameterized.h>
#include "xml-scanner.h"
#include "apphook.h"
#include "scratch-buffers.h"
#include "cfg.h"
Include dependency graph for test_xml_scanner.c:

Classes

struct  NameValuePair
 
struct  Expected
 
struct  XMLScannerTestOptions
 

Macros

#define REPORT_POSSIBLE_PARSE_ERROR(x)   (_report_possible_parse_error((x), __LINE__))
 

Functions

 TestSuite (xml_scanner,.init=setup,.fini=teardown)
 
 Test (xml_scanner, shouldreverse)
 
 Test (xml_scanner, test_strip_whitespaces)
 

Macro Definition Documentation

◆ REPORT_POSSIBLE_PARSE_ERROR

#define REPORT_POSSIBLE_PARSE_ERROR (   x)    (_report_possible_parse_error((x), __LINE__))

Function Documentation

◆ Test() [1/2]

Test ( xml_scanner  ,
shouldreverse   
)

◆ Test() [2/2]

Test ( xml_scanner  ,
test_strip_whitespaces   
)

◆ TestSuite()

TestSuite ( xml_scanner  ,
init = setup,
fini = teardown 
)