syslog-ng source
test_geoip_parser.c File Reference
#include <criterion/criterion.h>
#include "libtest/msg_parse_lib.h"
#include "geoip-parser.h"
#include "apphook.h"
#include "scratch-buffers.h"
Include dependency graph for test_geoip_parser.c:

Functions

void setup (void)
 
void teardown (void)
 
 Test (geoip2, template_is_mandatory)
 
 Test (geoip2, set_prefix)
 
 Test (geoip2, empty_prefix)
 
 Test (geoip2, test_basic)
 
 TestSuite (geoip2,.init=setup,.fini=teardown)
 

Variables

GlobalConfig * cfg
 
LogParser * geoip_parser
 

Function Documentation

◆ setup()

void setup ( void  )

◆ teardown()

void teardown ( void  )

◆ Test() [1/4]

Test ( geoip2  ,
empty_prefix   
)

◆ Test() [2/4]

Test ( geoip2  ,
set_prefix   
)

◆ Test() [3/4]

Test ( geoip2  ,
template_is_mandatory   
)

◆ Test() [4/4]

Test ( geoip2  ,
test_basic   
)

◆ TestSuite()

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

Variable Documentation

◆ cfg

GlobalConfig* cfg

◆ geoip_parser

LogParser* geoip_parser