|
Greenbone Vulnerability Management Libraries 22.32.0
|
#include "logging.c"#include <cgreen/cgreen.h>#include <cgreen/mocks.h>#include <fcntl.h>#include <glib/gstdio.h>
Go to the source code of this file.
Functions | |
| Describe (logging) | |
| BeforeEach (logging) | |
| AfterEach (logging) | |
| Ensure (logging, validate_check_log_file) | |
| Ensure (logging, should_convert_level_int_from_string) | |
| Ensure (logging, should_convert_facility_int_from_string) | |
| Ensure (logging, should_load_log_configuration) | |
| static void | mock_log_func (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) |
| static void | mock_default_log_func (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) |
| static void | mock_default_domain_log_func (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) |
| Ensure (logging, should_setup_log_handlers_with_default_handler) | |
| Ensure (logging, should_setup_log_handlers_with_default_domain_handler) | |
| Ensure (logging, should_setup_log_handlers_with_domain_handler) | |
| Ensure (logging, should_get_time_for_null) | |
| static TestSuite * | logging_test_suite () |
| int | main (int argc, char **argv) |
| AfterEach | ( | logging | ) |
Definition at line 19 of file logging_tests.c.
| BeforeEach | ( | logging | ) |
Definition at line 15 of file logging_tests.c.
| Describe | ( | logging | ) |
| Ensure | ( | logging | , |
| should_convert_facility_int_from_string | ) |
Definition at line 97 of file logging_tests.c.
References facility_int_from_string().

| Ensure | ( | logging | , |
| should_convert_level_int_from_string | ) |
Definition at line 69 of file logging_tests.c.
References level_int_from_string().

| Ensure | ( | logging | , |
| should_get_time_for_null | ) |
Definition at line 301 of file logging_tests.c.
References get_time().

| Ensure | ( | logging | , |
| should_load_log_configuration | ) |
Definition at line 129 of file logging_tests.c.
References free_log_configuration(), gvm_logging_domain_get_default_level(), gvm_logging_domain_get_log_file(), gvm_logging_domain_get_prepend_separator(), gvm_logging_domain_get_prepend_string(), gvm_logging_domain_get_prepend_time_format(), gvm_logging_domain_get_syslog_facility(), gvm_logging_domain_get_syslog_ident(), and load_log_configuration().

| Ensure | ( | logging | , |
| should_setup_log_handlers_with_default_domain_handler | ) |
Definition at line 236 of file logging_tests.c.
References mock_default_domain_log_func(), mock_default_log_func(), mock_log_func(), and setup_log_handlers_internal().

| Ensure | ( | logging | , |
| should_setup_log_handlers_with_default_handler | ) |
Definition at line 195 of file logging_tests.c.
References free_log_configuration(), load_log_configuration(), mock_default_domain_log_func(), mock_default_log_func(), mock_log_func(), and setup_log_handlers_internal().

| Ensure | ( | logging | , |
| should_setup_log_handlers_with_domain_handler | ) |
Definition at line 260 of file logging_tests.c.
References free_log_configuration(), load_log_configuration(), mock_default_domain_log_func(), mock_default_log_func(), mock_log_func(), and setup_log_handlers_internal().

| Ensure | ( | logging | , |
| validate_check_log_file | ) |
Definition at line 23 of file logging_tests.c.
References check_log_file(), gvm_logging_domain_free(), gvm_logging_domain_new(), and gvm_logging_domain_set_log_file().

|
static |
Definition at line 307 of file logging_tests.c.
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 328 of file logging_tests.c.
References logging_test_suite().

|
static |
Definition at line 189 of file logging_tests.c.
Referenced by Ensure(), Ensure(), and Ensure().

|
static |
Definition at line 182 of file logging_tests.c.
Referenced by Ensure(), Ensure(), and Ensure().

|
static |
Definition at line 175 of file logging_tests.c.
Referenced by Ensure(), Ensure(), and Ensure().
