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

Classes

struct  TestNameValue
 
struct  TestParserOptions
 

Macros

#define SIZE_OF_ARRAY(array)   (sizeof(array) / sizeof((array)[0]))
 

Functions

void setup (void)
 
void teardown (void)
 
 TestSuite (snmptrapd_parser,.init=setup,.fini=teardown)
 
 Test (snmptrapd_parser, test_general_v2_message_with_oids)
 
 Test (snmptrapd_parser, test_general_v1_message_with_oids)
 
 Test (snmptrapd_parser, test_v2_with_symbolic_names_and_various_types)
 
 Test (snmptrapd_parser, test_v1_with_symbolic_names)
 
 Test (snmptrapd_parser, test_v2_with_generated_message)
 
 Test (snmptrapd_parser, test_v2_with_generated_message_escaped)
 
 Test (snmptrapd_parser, test_v2_without_prefix)
 
 Test (snmptrapd_parser, test_v2_key_normalization)
 
 Test (snmptrapd_parser, test_general_v1_message_without_varbindlist)
 
 Test (snmptrapd_parser, test_snmptrapd_debug_message_with_timestamp)
 
 Test (snmptrapd_parser, test_v2_varbindlist_starts_with_tab)
 
 Test (snmptrapd_parser, test_v2_message_with_garbage)
 

Macro Definition Documentation

◆ SIZE_OF_ARRAY

#define SIZE_OF_ARRAY (   array)    (sizeof(array) / sizeof((array)[0]))

Function Documentation

◆ setup()

void setup ( void  )

◆ teardown()

void teardown ( void  )

◆ Test() [1/12]

Test ( snmptrapd_parser  ,
test_general_v1_message_with_oids   
)

◆ Test() [2/12]

Test ( snmptrapd_parser  ,
test_general_v1_message_without_varbindlist   
)

◆ Test() [3/12]

Test ( snmptrapd_parser  ,
test_general_v2_message_with_oids   
)

◆ Test() [4/12]

Test ( snmptrapd_parser  ,
test_snmptrapd_debug_message_with_timestamp   
)

◆ Test() [5/12]

Test ( snmptrapd_parser  ,
test_v1_with_symbolic_names   
)

◆ Test() [6/12]

Test ( snmptrapd_parser  ,
test_v2_key_normalization   
)

◆ Test() [7/12]

Test ( snmptrapd_parser  ,
test_v2_message_with_garbage   
)

◆ Test() [8/12]

Test ( snmptrapd_parser  ,
test_v2_varbindlist_starts_with_tab   
)

◆ Test() [9/12]

Test ( snmptrapd_parser  ,
test_v2_with_generated_message   
)

◆ Test() [10/12]

Test ( snmptrapd_parser  ,
test_v2_with_generated_message_escaped   
)

◆ Test() [11/12]

Test ( snmptrapd_parser  ,
test_v2_with_symbolic_names_and_various_types   
)

◆ Test() [12/12]

Test ( snmptrapd_parser  ,
test_v2_without_prefix   
)

◆ TestSuite()

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