17#include "imgui_te_context.h"
30 ImGuiTestContext*
Ctx;
87inline ImGuiTest*
ImTest(
const char* name, F testFunc) {
88 auto* stored =
new F(std::move(testFunc));
89 ImGuiTest* t = IM_REGISTER_TEST(s_TestEngine,
"funcdoodle", name);
91 t->GuiFunc = [](ImGuiTestContext*) {};
92 t->TestFunc = [](ImGuiTestContext* ctx) {
93 auto& func = *
static_cast<F*
>(ctx->Test->UserData);
Core FuncDoodle application class and runtime control interface.
ImGuiTest * ImTest(const char *name, F testFunc)
Registers a test under the "funcdoodle" group with automatic popup injection.
Definition ImTest.h:87
FuncDoodle::PopupRegistry & GetPopups()
Returns the application's popup registry.
Definition ImTest.h:59
FuncDoodle::Application * GetApp()
Returns the active FuncDoodle application instance.
Definition ImTest.h:42
Lightweight testing framework for FuncDoodle.
Class holding most of the data required to launch FuncDoodle.
Definition App.h:50
UIManager & GetUiManager()
Returns the top-level UI manager.
Definition App.h:297
static Application * Get()
Returns the active application singleton.
Definition App.h:60
PopupRegistry & GetPopups()
Returns the popup state registry owned by the UI manager.
Definition UIManager.h:49
Bundles the ImGui test context with a popup registry reference.
Definition ImTest.h:29
FuncDoodle::PopupRegistry & Popups
Definition ImTest.h:31
ImGuiTestContext * Ctx
Definition ImTest.h:30