#include <criterion/criterion.h>#include "libtest/cr_template.h"#include "logmsg/logmsg.h"#include "template/templates.h"#include "template/user-function.h"#include "apphook.h"#include "cfg.h"#include "plugin.h"#include "scratch-buffers.h"#include "hostname.h"#include <time.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include <iv.h>
Functions | |
| void | setup (void) |
| void | teardown (void) |
| TestSuite (template,.init=setup,.fini=teardown) | |
| Test (template, test_macros_v3x) | |
| Test (template, test_macros_v40) | |
| Test (template, test_loghost_macro) | |
| Test (template, test_nvpairs) | |
| Test (template, test_template_functions) | |
| Test (template, test_message_refs) | |
| Test (template, test_syntax_errors) | |
| Test (template, test_multi_thread) | |
| Test (template, test_escaping) | |
| Test (template, test_user_template_function) | |
| Test (template, test_template_function_args) | |
| Test (template, test_single_values_and_literal_strings_are_considered_trivial) | |
| Test (template, test_get_trivial_handle_returns_the_handle_associated_with_the_trivial_template) | |
| Test (template, test_invalid_templates_are_trivial) | |
| Test (template, test_non_trivial_templates) | |
| Test (template, test_literal_string_templates) | |
| Test (template, test_compile_literal_string) | |
| Test (template, test_result_of_concatenation_in_templates_are_typed_as_strings) | |
| Test (template, test_literals_in_templates_are_typed_as_strings) | |
| Test (template, test_single_element_typed_value_refs_are_typed_as_the_value) | |
| Test (template, test_single_element_typed_value_refs_with_escaping_are_typed_as_strings) | |
| Test (template, test_default_values_are_typed_as_strings) | |
| Test (template, test_type_hint_overrides_the_calculated_type) | |
| Test (template, test_log_template_compile_with_type_hint_sets_the_type_hint_member_too) | |
| Test (template, test_log_template_compile_with_invalid_type_hint_resets_the_type_hint_to_none) | |
| Test (template, test_log_template_with_escaping_produces_string_even_if_the_value_would_otherwise_be_numeric) | |
| Test (template, test_bytes_and_protobuf_types_are_rendered_when_necessary) | |
Variables | |
| GCond | thread_ping |
| GMutex | thread_lock |
| gboolean | thread_start |
| void setup | ( | void | ) |
| void teardown | ( | void | ) |
| Test | ( | template | , |
| test_bytes_and_protobuf_types_are_rendered_when_necessary | |||
| ) |
| Test | ( | template | , |
| test_compile_literal_string | |||
| ) |
| Test | ( | template | , |
| test_default_values_are_typed_as_strings | |||
| ) |
| Test | ( | template | , |
| test_escaping | |||
| ) |
| Test | ( | template | , |
| test_get_trivial_handle_returns_the_handle_associated_with_the_trivial_template | |||
| ) |
| Test | ( | template | , |
| test_invalid_templates_are_trivial | |||
| ) |
| Test | ( | template | , |
| test_literal_string_templates | |||
| ) |
| Test | ( | template | , |
| test_literals_in_templates_are_typed_as_strings | |||
| ) |
| Test | ( | template | , |
| test_log_template_compile_with_invalid_type_hint_resets_the_type_hint_to_none | |||
| ) |
| Test | ( | template | , |
| test_log_template_compile_with_type_hint_sets_the_type_hint_member_too | |||
| ) |
| Test | ( | template | , |
| test_log_template_with_escaping_produces_string_even_if_the_value_would_otherwise_be_numeric | |||
| ) |
| Test | ( | template | , |
| test_loghost_macro | |||
| ) |
| Test | ( | template | , |
| test_macros_v3x | |||
| ) |
| Test | ( | template | , |
| test_macros_v40 | |||
| ) |
| Test | ( | template | , |
| test_message_refs | |||
| ) |
| Test | ( | template | , |
| test_multi_thread | |||
| ) |
| Test | ( | template | , |
| test_non_trivial_templates | |||
| ) |
| Test | ( | template | , |
| test_nvpairs | |||
| ) |
| Test | ( | template | , |
| test_result_of_concatenation_in_templates_are_typed_as_strings | |||
| ) |
| Test | ( | template | , |
| test_single_element_typed_value_refs_are_typed_as_the_value | |||
| ) |
| Test | ( | template | , |
| test_single_element_typed_value_refs_with_escaping_are_typed_as_strings | |||
| ) |
| Test | ( | template | , |
| test_single_values_and_literal_strings_are_considered_trivial | |||
| ) |
| Test | ( | template | , |
| test_syntax_errors | |||
| ) |
| Test | ( | template | , |
| test_template_function_args | |||
| ) |
| Test | ( | template | , |
| test_template_functions | |||
| ) |
| Test | ( | template | , |
| test_type_hint_overrides_the_calculated_type | |||
| ) |
| Test | ( | template | , |
| test_user_template_function | |||
| ) |
| GMutex thread_lock |
| GCond thread_ping |
| gboolean thread_start |