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.
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user