#include <criterion/criterion.h>#include "libtest/msg_parse_lib.h"#include "apphook.h"#include "cfg.h"#include "syslog-format.h"#include "logmsg/logmsg.h"#include "msg-format.h"#include "scratch-buffers.h"#include <string.h>
Functions | |
| TestSuite (syslog_format,.init=setup,.fini=teardown) | |
| Test (syslog_format, parser_should_not_spin_on_non_zero_terminated_input,.timeout=10) | |
| Test (syslog_format, cisco_sequence_id_non_zero_termination) | |
| Test (syslog_format, rfc3164_error_invalid_pri) | |
| Test (syslog_format, rfc3164_check_program_valid_name) | |
| Test (syslog_format, rfc3164_check_program_decimal_number) | |
| Test (syslog_format, rfc3164_check_program_invalid_character) | |
| Test (syslog_format, rfc3164_check_program_ip_address) | |
| Test (syslog_format, rfc3164_error_missing_timestamp) | |
| Test (syslog_format, rfc5424_error_invalid_timestamp) | |
| Test (syslog_format, rfc5424_error_invalid_sdata) | |
| Test (syslog_format, rfc3164_style_message_when_parsed_as_rfc5424_is_marked_as_such_in_msgformat) | |
| Test (syslog_format, rfc5424_style_message_when_parsed_as_rfc5424_is_marked_as_such_in_msgformat) | |
| Test (syslog_format, minimal_non_zero_terminated_numeric_message_is_parsed_as_program_name) | |
| Test (syslog_format, test_sdata_dash_means_there_are_no_sdata_elements) | |
| Test (syslog_format, test_sdata_parsing_invalid_brackets_are_returned_as_failures) | |
| Test (syslog_format, test_sdata_id_without_param_is_accepted_and_represented_in_sdata) | |
| Test (syslog_format, test_sdata_simple_id_and_param) | |
| Test (syslog_format, test_sdata_invalid_sd_id_and_param) | |
| Test (syslog_format, test_sdata_invalid_param) | |
| Test (syslog_format, test_sdata_invalid_value) | |
| Test (syslog_format, test_sdata_unquoted_value) | |
| Test (syslog_format, test_sdata_param_value_invalid_escape) | |
| Test (syslog_format, test_sdata_param_value_escape_quote) | |
| Test (syslog_format, test_sdata_param_value_escape_bracket) | |
| Test (syslog_format, test_sdata_param_value_escape_backslash) | |
| Test (syslog_format, test_sdata_simple_id_and_multiple_params) | |
| Test (syslog_format, test_sdata_enterprise_qualified_id_with_and_multiple_params) | |
| Test (syslog_format, test_sdata_missing_closing_bracket) | |
| Test (syslog_format, test_long_sdata) | |
| Test (syslog_format, test_frame_checking) | |
| Test (syslog_format, test_framing_not_detected_when_frame_length_is_too_long) | |
| Test (syslog_format, test_framing_not_detected_on_input_starting_with_whitespace) | |
Variables | |
| GlobalConfig * | cfg |
| MsgFormatOptions | parse_options |
| Test | ( | syslog_format | , |
| cisco_sequence_id_non_zero_termination | |||
| ) |
| Test | ( | syslog_format | , |
| minimal_non_zero_terminated_numeric_message_is_parsed_as_program_name | |||
| ) |
| Test | ( | syslog_format | , |
| parser_should_not_spin_on_non_zero_terminated_input | , | ||
| . | timeout = 10 |
||
| ) |
| Test | ( | syslog_format | , |
| rfc3164_check_program_decimal_number | |||
| ) |
| Test | ( | syslog_format | , |
| rfc3164_check_program_invalid_character | |||
| ) |
| Test | ( | syslog_format | , |
| rfc3164_check_program_ip_address | |||
| ) |
| Test | ( | syslog_format | , |
| rfc3164_check_program_valid_name | |||
| ) |
| Test | ( | syslog_format | , |
| rfc3164_error_invalid_pri | |||
| ) |
| Test | ( | syslog_format | , |
| rfc3164_error_missing_timestamp | |||
| ) |
| Test | ( | syslog_format | , |
| rfc3164_style_message_when_parsed_as_rfc5424_is_marked_as_such_in_msgformat | |||
| ) |
| Test | ( | syslog_format | , |
| rfc5424_error_invalid_sdata | |||
| ) |
| Test | ( | syslog_format | , |
| rfc5424_error_invalid_timestamp | |||
| ) |
| Test | ( | syslog_format | , |
| rfc5424_style_message_when_parsed_as_rfc5424_is_marked_as_such_in_msgformat | |||
| ) |
| Test | ( | syslog_format | , |
| test_frame_checking | |||
| ) |
| Test | ( | syslog_format | , |
| test_framing_not_detected_on_input_starting_with_whitespace | |||
| ) |
| Test | ( | syslog_format | , |
| test_framing_not_detected_when_frame_length_is_too_long | |||
| ) |
| Test | ( | syslog_format | , |
| test_long_sdata | |||
| ) |
| Test | ( | syslog_format | , |
| test_sdata_dash_means_there_are_no_sdata_elements | |||
| ) |
| Test | ( | syslog_format | , |
| test_sdata_enterprise_qualified_id_with_and_multiple_params | |||
| ) |
| Test | ( | syslog_format | , |
| test_sdata_id_without_param_is_accepted_and_represented_in_sdata | |||
| ) |
| Test | ( | syslog_format | , |
| test_sdata_invalid_param | |||
| ) |
| Test | ( | syslog_format | , |
| test_sdata_invalid_sd_id_and_param | |||
| ) |
| Test | ( | syslog_format | , |
| test_sdata_invalid_value | |||
| ) |
| Test | ( | syslog_format | , |
| test_sdata_missing_closing_bracket | |||
| ) |
| Test | ( | syslog_format | , |
| test_sdata_param_value_escape_backslash | |||
| ) |
| Test | ( | syslog_format | , |
| test_sdata_param_value_escape_bracket | |||
| ) |
| Test | ( | syslog_format | , |
| test_sdata_param_value_escape_quote | |||
| ) |
| Test | ( | syslog_format | , |
| test_sdata_param_value_invalid_escape | |||
| ) |
| Test | ( | syslog_format | , |
| test_sdata_parsing_invalid_brackets_are_returned_as_failures | |||
| ) |
| Test | ( | syslog_format | , |
| test_sdata_simple_id_and_multiple_params | |||
| ) |
| Test | ( | syslog_format | , |
| test_sdata_simple_id_and_param | |||
| ) |
| Test | ( | syslog_format | , |
| test_sdata_unquoted_value | |||
| ) |
| GlobalConfig* cfg |
| MsgFormatOptions parse_options |