HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
Loading...
Searching...
No Matches
logger_comprehensive_test.cpp File Reference

Comprehensive test suite for Logger singleton. More...

#include "TestFramework.h"
#include "handlers/logger/Logger.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
Include dependency graph for logger_comprehensive_test.cpp:

Functions

static bool test_singleton_access () noexcept
 
static bool test_initialize () noexcept
 
static bool test_reinitialize () noexcept
 
static bool test_log_all_levels () noexcept
 
static bool test_set_log_level () noexcept
 
static bool test_formatted_output () noexcept
 
static bool test_ascii_art () noexcept
 
static bool test_enable_disable_features () noexcept
 
static bool test_concurrent_logging () noexcept
 
void app_main (void)
 

Variables

static const char * TAG = "Logger_Test"
 
static TestResults g_test_results
 
static constexpr bool ENABLE_SINGLETON_TESTS = true
 
static constexpr bool ENABLE_INIT_TESTS = true
 
static constexpr bool ENABLE_LOG_LEVEL_TESTS = true
 
static constexpr bool ENABLE_FORMATTED_OUTPUT_TESTS = true
 
static constexpr bool ENABLE_ASCII_ART_TESTS = true
 
static constexpr bool ENABLE_CONFIG_TESTS = true
 
static constexpr bool ENABLE_THREAD_SAFETY_TESTS = true
 

Detailed Description

Comprehensive test suite for Logger singleton.

Tests: Singleton access, initialization, log levels, formatted output with colors/styles, ASCII art rendering, log level filtering, tag-based level override, enable/disable features, flush, and thread safety.

Author
HardFOC Team
Date
2025-2026

Function Documentation

◆ app_main()

void app_main ( void )
Here is the call graph for this function:

◆ test_ascii_art()

static bool test_ascii_art ( )
staticnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_concurrent_logging()

static bool test_concurrent_logging ( )
staticnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_enable_disable_features()

static bool test_enable_disable_features ( )
staticnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_formatted_output()

static bool test_formatted_output ( )
staticnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_initialize()

static bool test_initialize ( )
staticnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_log_all_levels()

static bool test_log_all_levels ( )
staticnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_reinitialize()

static bool test_reinitialize ( )
staticnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_set_log_level()

static bool test_set_log_level ( )
staticnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_singleton_access()

static bool test_singleton_access ( )
staticnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ENABLE_ASCII_ART_TESTS

constexpr bool ENABLE_ASCII_ART_TESTS = true
staticconstexpr

◆ ENABLE_CONFIG_TESTS

constexpr bool ENABLE_CONFIG_TESTS = true
staticconstexpr

◆ ENABLE_FORMATTED_OUTPUT_TESTS

constexpr bool ENABLE_FORMATTED_OUTPUT_TESTS = true
staticconstexpr

◆ ENABLE_INIT_TESTS

constexpr bool ENABLE_INIT_TESTS = true
staticconstexpr

◆ ENABLE_LOG_LEVEL_TESTS

constexpr bool ENABLE_LOG_LEVEL_TESTS = true
staticconstexpr

◆ ENABLE_SINGLETON_TESTS

constexpr bool ENABLE_SINGLETON_TESTS = true
staticconstexpr

◆ ENABLE_THREAD_SAFETY_TESTS

constexpr bool ENABLE_THREAD_SAFETY_TESTS = true
staticconstexpr

◆ g_test_results

TestResults g_test_results
static

◆ TAG

const char* TAG = "Logger_Test"
static