MCPcopy Create free account
hub / github.com/AGenUI/AGenUI / TEST

Function TEST

tests/cpp/integration/render_callback_test.cpp:17–28  ·  view source on GitHub ↗

RC001

Source from the content-addressed store, hash-verified

15
16// RC001
17TEST(RenderCallbackTest, RC001_OnRenderFinish_PostedToWorker_NoCrash) {
18 ::agenui::testing::ScopedSurfaceManager sm;
19 ASSERT_TRUE(sm);
20 ::agenui::ComponentRenderInfo info;
21 info.surfaceId = "no-such";
22 info.componentId = "x";
23 info.type = "Text";
24 info.width = 10.f;
25 info.height = 10.f;
26 EXPECT_NO_THROW(sm->onRenderFinish(info));
27 ::agenui::testing::WaitForWorkerIdle();
28}
29
30// RC002
31TEST(RenderCallbackTest, RC002_OnSurfaceSizeChanged_PostedToWorker_NoCrash) {

Callers

nothing calls this directly

Calls 3

WaitForWorkerIdleFunction · 0.85
onRenderFinishMethod · 0.65
onSurfaceSizeChangedMethod · 0.65

Tested by

no test coverage detected