syslog-ng source
test_template_selector.c File Reference
#include <criterion/criterion.h>
#include "add-contextual-data-template-selector.h"
#include "logmsg/logmsg.h"
#include "template/macros.h"
#include "cfg.h"
#include "apphook.h"
#include <unistd.h>
Include dependency graph for test_template_selector.c:

Functions

 TestSuite (add_contextual_data_template_selector,.init=app_startup,.fini=app_shutdown)
 
 Test (add_contextual_data_template_selector, test_given_empty_selector_when_resolve_then_result_is_null)
 
 Test (add_contextual_data_template_selector, test_given_template_selector_when_resolve_then_result_is_the_formatted_template_value)
 
 Test (add_contextual_data_template_selector, test_template_selector_cannot_be_resolved)
 

Function Documentation

◆ Test() [1/3]

Test ( add_contextual_data_template_selector  ,
test_given_empty_selector_when_resolve_then_result_is_null   
)

◆ Test() [2/3]

Test ( add_contextual_data_template_selector  ,
test_given_template_selector_when_resolve_then_result_is_the_formatted_template_value   
)

◆ Test() [3/3]

Test ( add_contextual_data_template_selector  ,
test_template_selector_cannot_be_resolved   
)

◆ TestSuite()

TestSuite ( add_contextual_data_template_selector  ,
init = app_startup,
fini = app_shutdown 
)