#include <criterion/criterion.h>#include "libtest/grab-logging.h"#include "template/templates.c"#include "template/simple-function.h"#include "template/globals.h"#include "logmsg/logmsg.h"#include "apphook.h"#include "cfg.h"#include "plugin.h"
Macros | |
| #define | assert_common_element(expected) |
| #define | fill_expected_template_element(element, text, default_value, spec, type, msg_ref) |
| #define | assert_compiled_template(set_text, set_default_value, spec, type, msg_ref) |
Functions | |
| TEMPLATE_FUNCTION_SIMPLE (hello) | |
| Test (template_compile, test_simple_string_literal) | |
| Test (template_compile, test_simple_macro) | |
| Test (template_compile, test_macro_and_text) | |
| Test (template_compile, test_macro_without_braces) | |
| Test (template_compile, test_macro_name_without_braces_are_terminated_with_non_identifier_characters) | |
| Test (template_compile, test_macro_without_at_records_that_no_msgref_was_present_by_msgref_zero) | |
| Test (template_compile, test_macro_with_at_references_a_single_msg_in_the_context_stack_by_setting_msgref) | |
| Test (template_compile, test_macro_with_invalid_msgref_are_recognized_as_the_top_element_in_the_stack) | |
| Test (template_compile, test_dollar_prefixed_with_backslash_is_a_literal_dollar) | |
| Test (template_compile, test_colon_dash_in_braces_is_parsed_as_default_value) | |
| Test (template_compile, test_double_dollars_is_a_literal_dollar) | |
| Test (template_compile, test_dollar_with_an_invalid_macro_name_without_braces_is_parsed_as_a_literal_dollar) | |
| Test (template_compile, test_backslash_without_finishing_the_escape_sequence_is_ignored) | |
| Test (template_compile, test_double_at_is_a_literal_at) | |
| Test (template_compile, test_simple_value) | |
| Test (template_compile, test_value_without_braces) | |
| Test (template_compile, test_backslash_within_braces_is_taken_literally) | |
| Test (template_compile, test_value_name_can_be_the_empty_string_when_referenced_using_braces) | |
| Test (template_compile, test_simple_template_function) | |
| Test (template_compile, test_complicated_template_function) | |
| Test (template_compile, test_simple_template_function_with_additional_text) | |
| Test (template_compile, test_qouted_string_in_name_template_function) | |
| Test (template_compile, test_invalid_macro) | |
| Test (template_compile, test_invalid_subst) | |
| Test (template_compile, test_template_function_bad1) | |
| Test (template_compile, test_template_function_bad2) | |
| Test (template_compile, test_template_function_bad3) | |
| Test (template_compile, test_unknown_function) | |
| TestSuite (template_compile,.init=setup,.fini=teardown) | |
Variables | |
| Plugin | hello_plugin = TEMPLATE_FUNCTION_PLUGIN(hello, "hello") |
| #define assert_common_element | ( | expected | ) |
| #define assert_compiled_template | ( | set_text, | |
| set_default_value, | |||
| spec, | |||
| type, | |||
| msg_ref | |||
| ) |
| #define fill_expected_template_element | ( | element, | |
| text, | |||
| default_value, | |||
| spec, | |||
| type, | |||
| msg_ref | |||
| ) |
| TEMPLATE_FUNCTION_SIMPLE | ( | hello | ) |
| Test | ( | template_compile | , |
| test_backslash_within_braces_is_taken_literally | |||
| ) |
| Test | ( | template_compile | , |
| test_backslash_without_finishing_the_escape_sequence_is_ignored | |||
| ) |
| Test | ( | template_compile | , |
| test_colon_dash_in_braces_is_parsed_as_default_value | |||
| ) |
| Test | ( | template_compile | , |
| test_complicated_template_function | |||
| ) |
| Test | ( | template_compile | , |
| test_dollar_prefixed_with_backslash_is_a_literal_dollar | |||
| ) |
| Test | ( | template_compile | , |
| test_dollar_with_an_invalid_macro_name_without_braces_is_parsed_as_a_literal_dollar | |||
| ) |
| Test | ( | template_compile | , |
| test_double_at_is_a_literal_at | |||
| ) |
| Test | ( | template_compile | , |
| test_double_dollars_is_a_literal_dollar | |||
| ) |
| Test | ( | template_compile | , |
| test_invalid_macro | |||
| ) |
| Test | ( | template_compile | , |
| test_invalid_subst | |||
| ) |
| Test | ( | template_compile | , |
| test_macro_and_text | |||
| ) |
| Test | ( | template_compile | , |
| test_macro_name_without_braces_are_terminated_with_non_identifier_characters | |||
| ) |
| Test | ( | template_compile | , |
| test_macro_with_at_references_a_single_msg_in_the_context_stack_by_setting_msgref | |||
| ) |
| Test | ( | template_compile | , |
| test_macro_with_invalid_msgref_are_recognized_as_the_top_element_in_the_stack | |||
| ) |
| Test | ( | template_compile | , |
| test_macro_without_at_records_that_no_msgref_was_present_by_msgref_zero | |||
| ) |
| Test | ( | template_compile | , |
| test_macro_without_braces | |||
| ) |
| Test | ( | template_compile | , |
| test_qouted_string_in_name_template_function | |||
| ) |
| Test | ( | template_compile | , |
| test_simple_macro | |||
| ) |
| Test | ( | template_compile | , |
| test_simple_string_literal | |||
| ) |
| Test | ( | template_compile | , |
| test_simple_template_function | |||
| ) |
| Test | ( | template_compile | , |
| test_simple_template_function_with_additional_text | |||
| ) |
| Test | ( | template_compile | , |
| test_simple_value | |||
| ) |
| Test | ( | template_compile | , |
| test_template_function_bad1 | |||
| ) |
| Test | ( | template_compile | , |
| test_template_function_bad2 | |||
| ) |
| Test | ( | template_compile | , |
| test_template_function_bad3 | |||
| ) |
| Test | ( | template_compile | , |
| test_unknown_function | |||
| ) |
| Test | ( | template_compile | , |
| test_value_name_can_be_the_empty_string_when_referenced_using_braces | |||
| ) |
| Test | ( | template_compile | , |
| test_value_without_braces | |||
| ) |
| Plugin hello_plugin = TEMPLATE_FUNCTION_PLUGIN(hello, "hello") |