#include <criterion/criterion.h>#include "libtest/msg_parse_lib.h"#include "libtest/fake-time.h"#include "logmsg/logmsg.h"#include "serialize.h"#include "apphook.h"#include "gsockaddr.h"#include "timeutils/cache.h"#include "timeutils/misc.h"#include "scratch-buffers.h"#include "cfg.h"#include "plugin.h"#include <time.h>#include <string.h>#include <stdlib.h>#include <stdio.h>
Classes | |
| struct | sdata_pair |
| struct | msgparse_params |
Functions | |
| void | assert_log_message_sdata_pairs (LogMessage *message, struct sdata_pair *expected_sd_pairs) |
| void | setup (void) |
| void | teardown (void) |
| TestSuite (msgparse,.init=setup,.fini=teardown) | |
| void | test_log_messages_can_be_parsed (struct msgparse_params *param) |
| void | run_parameterized_test (struct msgparse_params *params) |
| Test (msgparse, test_parse_longer_than_32_sd_id) | |
| Test (msgparse, test_bad_sd_data_unescaped) | |
| Test (msgparse, test_timestamp) | |
| Test (msgparse, test_foreign_timezone) | |
| Test (msgparse, test_hostname) | |
| Test (msgparse, test_timestamp_others) | |
| Test (msgparse, test_expected_sd_pairs_0) | |
| Test (msgparse, test_expected_sd_pairs_1) | |
| Test (msgparse, test_expected_sd_pairs_2) | |
| Test (msgparse, test_expected_sd_pairs_3) | |
| Test (msgparse, test_expected_sd_pairs_long) | |
| Test (msgparse, test_unescaped_too_long_message_parts) | |
| Test (msgparse, test_expected_sd_pairs_tz_known) | |
| Test (msgparse, test_expected_sd_pairs_enterprise_id) | |
| Test (msgparse, test_expected_sd_pairs_without_sd_param) | |
| Test (msgparse, test_ip_in_host) | |
| Test (msgparse, test_simple_message) | |
| Test (msgparse, test_no_header_flag) | |
| Test (msgparse, test_no_rfc3164_fallback_flag) | |
| Test (msgparse, test_sanitize_utf8) | |
Variables | |
| struct sdata_pair | ignore_sdata_pairs [] = { { NULL, NULL } } |
| struct sdata_pair | empty_sdata_pairs [] = { { NULL, NULL } } |
| MsgFormatOptions | parse_options |
| void assert_log_message_sdata_pairs | ( | LogMessage * | message, |
| struct sdata_pair * | expected_sd_pairs | ||
| ) |
| void run_parameterized_test | ( | struct msgparse_params * | params | ) |
| void setup | ( | void | ) |
| void teardown | ( | void | ) |
| Test | ( | msgparse | , |
| test_bad_sd_data_unescaped | |||
| ) |
| Test | ( | msgparse | , |
| test_expected_sd_pairs_0 | |||
| ) |
| Test | ( | msgparse | , |
| test_expected_sd_pairs_1 | |||
| ) |
| Test | ( | msgparse | , |
| test_expected_sd_pairs_2 | |||
| ) |
| Test | ( | msgparse | , |
| test_expected_sd_pairs_3 | |||
| ) |
| Test | ( | msgparse | , |
| test_expected_sd_pairs_enterprise_id | |||
| ) |
| Test | ( | msgparse | , |
| test_expected_sd_pairs_long | |||
| ) |
| Test | ( | msgparse | , |
| test_expected_sd_pairs_tz_known | |||
| ) |
| Test | ( | msgparse | , |
| test_expected_sd_pairs_without_sd_param | |||
| ) |
| Test | ( | msgparse | , |
| test_foreign_timezone | |||
| ) |
| Test | ( | msgparse | , |
| test_hostname | |||
| ) |
| Test | ( | msgparse | , |
| test_ip_in_host | |||
| ) |
| Test | ( | msgparse | , |
| test_no_header_flag | |||
| ) |
| Test | ( | msgparse | , |
| test_no_rfc3164_fallback_flag | |||
| ) |
| Test | ( | msgparse | , |
| test_parse_longer_than_32_sd_id | |||
| ) |
| Test | ( | msgparse | , |
| test_sanitize_utf8 | |||
| ) |
| Test | ( | msgparse | , |
| test_simple_message | |||
| ) |
| Test | ( | msgparse | , |
| test_timestamp | |||
| ) |
| Test | ( | msgparse | , |
| test_timestamp_others | |||
| ) |
| Test | ( | msgparse | , |
| test_unescaped_too_long_message_parts | |||
| ) |
| void test_log_messages_can_be_parsed | ( | struct msgparse_params * | param | ) |
| struct sdata_pair empty_sdata_pairs[] = { { NULL, NULL } } |
| struct sdata_pair ignore_sdata_pairs[] = { { NULL, NULL } } |
| MsgFormatOptions parse_options |