#include <criterion/criterion.h>#include <criterion/parameterized.h>#include "logsource.h"#include "logmsg/logmsg.h"#include "logpipe.h"#include "cfg.h"#include "apphook.h"#include "dynamic-window-pool.h"#include <syslog.h>#include <string.h>
Classes | |
| struct | TestSource |
| struct | TestPipe |
| struct | MangleHostnameParams |
Macros | |
| #define | TEST_SOURCE_GROUP "test_source_group" |
| #define | TEST_STATS_ID "test_stats_id" |
| #define | LONG_HOSTNAME_SIZE 512 |
Functions | |
| void | setup (void) |
| void | teardown (void) |
| void | test_source_wakeup (LogSource *s) |
| LogSource * | test_source_init (LogSourceOptions *options) |
| void | test_source_destroy (LogSource *source) |
| TestPipe * | test_pipe_init (void) |
| void | test_pipe_ack_messages (TestPipe *pipe, gsize ack_count) |
| void | test_pipe_destroy (TestPipe *pipe) |
| const gchar * | resolve_sockaddr_to_hostname (gsize *result_len, GSockAddr *saddr, const HostResolveOptions *host_resolve_options) |
| ParameterizedTestParameters (log_source, test_mangle_hostname) | |
| ParameterizedTest (MangleHostnameParams *test_params, log_source, test_mangle_hostname) | |
| Test (log_source, test_chain_hostname_truncates_long_chained_hostnames) | |
| Test (log_source, test_host_and_program_override) | |
| Test (log_source, test_source_tags) | |
| Test (log_source, test_suspend) | |
| Test (log_source, test_wakeup) | |
| Test (log_source, test_forced_suspend_and_wakeup) | |
| Test (log_source, test_mangle_callback) | |
| Test (log_source, test_dynamic_window_is_disabled_by_default) | |
| Test (log_source, test_dynamic_window) | |
| TestSuite (log_source,.init=setup,.fini=teardown) | |
Variables | |
| GlobalConfig * | cfg |
| LogSourceOptions | source_options |
| #define LONG_HOSTNAME_SIZE 512 |
| #define TEST_SOURCE_GROUP "test_source_group" |
| #define TEST_STATS_ID "test_stats_id" |
| ParameterizedTest | ( | MangleHostnameParams * | test_params, |
| log_source | , | ||
| test_mangle_hostname | |||
| ) |
| ParameterizedTestParameters | ( | log_source | , |
| test_mangle_hostname | |||
| ) |
| const gchar* resolve_sockaddr_to_hostname | ( | gsize * | result_len, |
| GSockAddr * | saddr, | ||
| const HostResolveOptions * | host_resolve_options | ||
| ) |
| void setup | ( | void | ) |
| void teardown | ( | void | ) |
| Test | ( | log_source | , |
| test_chain_hostname_truncates_long_chained_hostnames | |||
| ) |
| Test | ( | log_source | , |
| test_dynamic_window | |||
| ) |
| Test | ( | log_source | , |
| test_dynamic_window_is_disabled_by_default | |||
| ) |
| Test | ( | log_source | , |
| test_forced_suspend_and_wakeup | |||
| ) |
| Test | ( | log_source | , |
| test_host_and_program_override | |||
| ) |
| Test | ( | log_source | , |
| test_mangle_callback | |||
| ) |
| Test | ( | log_source | , |
| test_source_tags | |||
| ) |
| Test | ( | log_source | , |
| test_suspend | |||
| ) |
| Test | ( | log_source | , |
| test_wakeup | |||
| ) |
| void test_pipe_ack_messages | ( | TestPipe * | pipe, |
| gsize | ack_count | ||
| ) |
| void test_pipe_destroy | ( | TestPipe * | pipe | ) |
| TestPipe* test_pipe_init | ( | void | ) |
| void test_source_destroy | ( | LogSource * | source | ) |
| LogSource* test_source_init | ( | LogSourceOptions * | options | ) |
| void test_source_wakeup | ( | LogSource * | s | ) |
| GlobalConfig* cfg |
| LogSourceOptions source_options |