From dfd73ec158920fc56fe484ef7fe0babc1489d4f1 Mon Sep 17 00:00:00 2001 From: Egutierrez Date: Tue, 28 Apr 2026 23:42:29 +0200 Subject: [PATCH] test(cpp): placeholders para top-19 primitivos UI (logica visual en 0048) Cada placeholder garantiza que el .cpp compila y linka contra Catch2, y reserva el slot para tests futuros una vez se extraiga logica pura del componente. La validacion visual real vive en primitives_gallery (issue 0048). Cubre: tokens, button, select, text_input, badge, kpi_card, pie_chart, bar_chart, tree_view, modal_dialog, toolbar, toast, empty_state, page_header, dashboard_panel, dashboard_grid, sparkline, table_view, icon_button. --- cpp/tests/test_badge.cpp | 14 ++++++++++++++ cpp/tests/test_bar_chart.cpp | 14 ++++++++++++++ cpp/tests/test_button.cpp | 14 ++++++++++++++ cpp/tests/test_dashboard_grid.cpp | 14 ++++++++++++++ cpp/tests/test_dashboard_panel.cpp | 14 ++++++++++++++ cpp/tests/test_empty_state.cpp | 14 ++++++++++++++ cpp/tests/test_icon_button.cpp | 14 ++++++++++++++ cpp/tests/test_kpi_card.cpp | 14 ++++++++++++++ cpp/tests/test_modal_dialog.cpp | 14 ++++++++++++++ cpp/tests/test_page_header.cpp | 14 ++++++++++++++ cpp/tests/test_pie_chart.cpp | 14 ++++++++++++++ cpp/tests/test_select.cpp | 14 ++++++++++++++ cpp/tests/test_sparkline.cpp | 14 ++++++++++++++ cpp/tests/test_table_view.cpp | 14 ++++++++++++++ cpp/tests/test_text_input.cpp | 14 ++++++++++++++ cpp/tests/test_toast.cpp | 14 ++++++++++++++ cpp/tests/test_tokens.cpp | 14 ++++++++++++++ cpp/tests/test_toolbar.cpp | 14 ++++++++++++++ cpp/tests/test_tree_view.cpp | 14 ++++++++++++++ 19 files changed, 266 insertions(+) create mode 100644 cpp/tests/test_badge.cpp create mode 100644 cpp/tests/test_bar_chart.cpp create mode 100644 cpp/tests/test_button.cpp create mode 100644 cpp/tests/test_dashboard_grid.cpp create mode 100644 cpp/tests/test_dashboard_panel.cpp create mode 100644 cpp/tests/test_empty_state.cpp create mode 100644 cpp/tests/test_icon_button.cpp create mode 100644 cpp/tests/test_kpi_card.cpp create mode 100644 cpp/tests/test_modal_dialog.cpp create mode 100644 cpp/tests/test_page_header.cpp create mode 100644 cpp/tests/test_pie_chart.cpp create mode 100644 cpp/tests/test_select.cpp create mode 100644 cpp/tests/test_sparkline.cpp create mode 100644 cpp/tests/test_table_view.cpp create mode 100644 cpp/tests/test_text_input.cpp create mode 100644 cpp/tests/test_toast.cpp create mode 100644 cpp/tests/test_tokens.cpp create mode 100644 cpp/tests/test_toolbar.cpp create mode 100644 cpp/tests/test_tree_view.cpp diff --git a/cpp/tests/test_badge.cpp b/cpp/tests/test_badge.cpp new file mode 100644 index 00000000..bf5059f4 --- /dev/null +++ b/cpp/tests/test_badge.cpp @@ -0,0 +1,14 @@ +// Placeholder test para badge — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("badge: compiles and links against Catch2", "[badge][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_bar_chart.cpp b/cpp/tests/test_bar_chart.cpp new file mode 100644 index 00000000..150b2a1f --- /dev/null +++ b/cpp/tests/test_bar_chart.cpp @@ -0,0 +1,14 @@ +// Placeholder test para bar_chart — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("bar_chart: compiles and links against Catch2", "[bar_chart][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_button.cpp b/cpp/tests/test_button.cpp new file mode 100644 index 00000000..36b615a6 --- /dev/null +++ b/cpp/tests/test_button.cpp @@ -0,0 +1,14 @@ +// Placeholder test para button — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("button: compiles and links against Catch2", "[button][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_dashboard_grid.cpp b/cpp/tests/test_dashboard_grid.cpp new file mode 100644 index 00000000..62071f15 --- /dev/null +++ b/cpp/tests/test_dashboard_grid.cpp @@ -0,0 +1,14 @@ +// Placeholder test para dashboard_grid — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("dashboard_grid: compiles and links against Catch2", "[dashboard_grid][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_dashboard_panel.cpp b/cpp/tests/test_dashboard_panel.cpp new file mode 100644 index 00000000..d1b9e4b6 --- /dev/null +++ b/cpp/tests/test_dashboard_panel.cpp @@ -0,0 +1,14 @@ +// Placeholder test para dashboard_panel — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("dashboard_panel: compiles and links against Catch2", "[dashboard_panel][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_empty_state.cpp b/cpp/tests/test_empty_state.cpp new file mode 100644 index 00000000..9d40fa55 --- /dev/null +++ b/cpp/tests/test_empty_state.cpp @@ -0,0 +1,14 @@ +// Placeholder test para empty_state — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("empty_state: compiles and links against Catch2", "[empty_state][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_icon_button.cpp b/cpp/tests/test_icon_button.cpp new file mode 100644 index 00000000..c64ff5c4 --- /dev/null +++ b/cpp/tests/test_icon_button.cpp @@ -0,0 +1,14 @@ +// Placeholder test para icon_button — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("icon_button: compiles and links against Catch2", "[icon_button][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_kpi_card.cpp b/cpp/tests/test_kpi_card.cpp new file mode 100644 index 00000000..3055e62d --- /dev/null +++ b/cpp/tests/test_kpi_card.cpp @@ -0,0 +1,14 @@ +// Placeholder test para kpi_card — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("kpi_card: compiles and links against Catch2", "[kpi_card][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_modal_dialog.cpp b/cpp/tests/test_modal_dialog.cpp new file mode 100644 index 00000000..d0e2f20f --- /dev/null +++ b/cpp/tests/test_modal_dialog.cpp @@ -0,0 +1,14 @@ +// Placeholder test para modal_dialog — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("modal_dialog: compiles and links against Catch2", "[modal_dialog][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_page_header.cpp b/cpp/tests/test_page_header.cpp new file mode 100644 index 00000000..83fb793f --- /dev/null +++ b/cpp/tests/test_page_header.cpp @@ -0,0 +1,14 @@ +// Placeholder test para page_header — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("page_header: compiles and links against Catch2", "[page_header][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_pie_chart.cpp b/cpp/tests/test_pie_chart.cpp new file mode 100644 index 00000000..63622f29 --- /dev/null +++ b/cpp/tests/test_pie_chart.cpp @@ -0,0 +1,14 @@ +// Placeholder test para pie_chart — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("pie_chart: compiles and links against Catch2", "[pie_chart][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_select.cpp b/cpp/tests/test_select.cpp new file mode 100644 index 00000000..b8a59ada --- /dev/null +++ b/cpp/tests/test_select.cpp @@ -0,0 +1,14 @@ +// Placeholder test para select — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("select: compiles and links against Catch2", "[select][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_sparkline.cpp b/cpp/tests/test_sparkline.cpp new file mode 100644 index 00000000..04f0b71c --- /dev/null +++ b/cpp/tests/test_sparkline.cpp @@ -0,0 +1,14 @@ +// Placeholder test para sparkline — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("sparkline: compiles and links against Catch2", "[sparkline][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_table_view.cpp b/cpp/tests/test_table_view.cpp new file mode 100644 index 00000000..9169d870 --- /dev/null +++ b/cpp/tests/test_table_view.cpp @@ -0,0 +1,14 @@ +// Placeholder test para table_view — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("table_view: compiles and links against Catch2", "[table_view][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_text_input.cpp b/cpp/tests/test_text_input.cpp new file mode 100644 index 00000000..1e2bfedf --- /dev/null +++ b/cpp/tests/test_text_input.cpp @@ -0,0 +1,14 @@ +// Placeholder test para text_input — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("text_input: compiles and links against Catch2", "[text_input][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_toast.cpp b/cpp/tests/test_toast.cpp new file mode 100644 index 00000000..2c81bb47 --- /dev/null +++ b/cpp/tests/test_toast.cpp @@ -0,0 +1,14 @@ +// Placeholder test para toast — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("toast: compiles and links against Catch2", "[toast][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_tokens.cpp b/cpp/tests/test_tokens.cpp new file mode 100644 index 00000000..295d8dd5 --- /dev/null +++ b/cpp/tests/test_tokens.cpp @@ -0,0 +1,14 @@ +// Placeholder test para tokens — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("tokens: compiles and links against Catch2", "[tokens][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_toolbar.cpp b/cpp/tests/test_toolbar.cpp new file mode 100644 index 00000000..255e432a --- /dev/null +++ b/cpp/tests/test_toolbar.cpp @@ -0,0 +1,14 @@ +// Placeholder test para toolbar — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("toolbar: compiles and links against Catch2", "[toolbar][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +} diff --git a/cpp/tests/test_tree_view.cpp b/cpp/tests/test_tree_view.cpp new file mode 100644 index 00000000..054796c2 --- /dev/null +++ b/cpp/tests/test_tree_view.cpp @@ -0,0 +1,14 @@ +// Placeholder test para tree_view — el componente requiere contexto ImGui activo +// para validar comportamiento real (rendering, hit-testing, eventos). La +// validacion visual se cubre en primitives_gallery (issue 0048). +// +// Este test garantiza que el .cpp compila contra Catch2 y reserva el slot +// para futuros tests de logica pura que se extraigan del componente. + +#define CATCH_CONFIG_MAIN +#include "catch_amalgamated.hpp" + +TEST_CASE("tree_view: compiles and links against Catch2", "[tree_view][placeholder]") { + INFO("Visual / behavioural test pending — see primitives_gallery (issue 0048)."); + REQUIRE(true); +}