HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
Loading...
Searching...
No Matches
AsciiArtComprehensiveTest.cpp File Reference

ASCII Art Generator comprehensive example and test suite for ESP32-C6 DevKit-M-1 (noexcept) More...

#include <algorithm>
#include <cstring>
#include <string>
#include <vector>
#include "TestFramework.h"
#include "utils/AsciiArtGenerator.h"
Include dependency graph for AsciiArtComprehensiveTest.cpp:

Functions

bool test_basic_ascii_art_generation () noexcept
 
bool test_uppercase_conversion () noexcept
 
bool test_special_characters () noexcept
 
bool test_numbers_and_symbols () noexcept
 
bool test_empty_and_edge_cases () noexcept
 
bool test_custom_character_management () noexcept
 
bool test_character_support_validation () noexcept
 
bool test_supported_characters_list () noexcept
 
bool test_complex_text_generation () noexcept
 
bool test_performance_and_stability () noexcept
 
void app_main (void)
 

Variables

static const char * TAG = "ASCII_ART_Test"
 
static TestResults g_test_results
 
static constexpr bool ENABLE_CORE_TESTS = true
 
static constexpr bool ENABLE_CHARACTER_TESTS = true
 
static constexpr bool ENABLE_EDGE_CASE_TESTS = true
 
static constexpr bool ENABLE_CUSTOM_TESTS = true
 
static constexpr bool ENABLE_ADVANCED_TESTS = true
 

Detailed Description

ASCII Art Generator comprehensive example and test suite for ESP32-C6 DevKit-M-1 (noexcept)

This file contains a comprehensive example and test suite for the AsciiArtGenerator targeting ESP32-C6 with ESP-IDF v5.5+. It provides thorough testing and demonstration of all ASCII art generation functionalities including basic text generation, custom character support, character validation, and edge cases.

All functions are noexcept - no exception handling used.

NOTE: Linter errors for ESP-IDF headers (ESP_LOGI, ESP_LOGE, etc.) are expected when ESP-IDF is not available in the linter environment. The code will compile correctly when ESP-IDF is properly set up.

Author
Nebiyu Tadesse
Date
2025

Function Documentation

◆ app_main()

void app_main ( void )

◆ test_basic_ascii_art_generation()

bool test_basic_ascii_art_generation ( )
noexcept

◆ test_character_support_validation()

bool test_character_support_validation ( )
noexcept

◆ test_complex_text_generation()

bool test_complex_text_generation ( )
noexcept

◆ test_custom_character_management()

bool test_custom_character_management ( )
noexcept

◆ test_empty_and_edge_cases()

bool test_empty_and_edge_cases ( )
noexcept

◆ test_numbers_and_symbols()

bool test_numbers_and_symbols ( )
noexcept

◆ test_performance_and_stability()

bool test_performance_and_stability ( )
noexcept

◆ test_special_characters()

bool test_special_characters ( )
noexcept

◆ test_supported_characters_list()

bool test_supported_characters_list ( )
noexcept

◆ test_uppercase_conversion()

bool test_uppercase_conversion ( )
noexcept

Variable Documentation

◆ ENABLE_ADVANCED_TESTS

constexpr bool ENABLE_ADVANCED_TESTS = true
staticconstexpr

◆ ENABLE_CHARACTER_TESTS

constexpr bool ENABLE_CHARACTER_TESTS = true
staticconstexpr

◆ ENABLE_CORE_TESTS

constexpr bool ENABLE_CORE_TESTS = true
staticconstexpr

◆ ENABLE_CUSTOM_TESTS

constexpr bool ENABLE_CUSTOM_TESTS = true
staticconstexpr

◆ ENABLE_EDGE_CASE_TESTS

constexpr bool ENABLE_EDGE_CASE_TESTS = true
staticconstexpr

◆ g_test_results

TestResults g_test_results
static

◆ TAG

const char* TAG = "ASCII_ART_Test"
static