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

Function TEST_F

tests/cpp/integration/engine_lifecycle_test.cpp:32–36  ·  view source on GitHub ↗

E001: init returns a valid (non-null) engine pointer. With the Environment already running, this is a re-entry of init and must return the existing instance.

Source from the content-addressed store, hash-verified

30// Environment already running, this is a re-entry of init and must
31// return the existing instance.
32TEST_F(EngineLifecycleTest, E001_InitEngine_ReturnsValidPointer) {
33 auto* engine = ::agenui::initAGenUIEngine();
34 EXPECT_NE(engine, nullptr);
35 EXPECT_EQ(engine, ::agenui::getAGenUIEngine());
36}
37
38// E002: init is idempotent — repeated calls return the same instance.
39TEST_F(EngineLifecycleTest, E002_InitEngine_RepeatedCall_Idempotent) {

Callers

nothing calls this directly

Calls 10

initAGenUIEngineFunction · 0.85
getAGenUIEngineFunction · 0.85
getRuntimeLoggerMethod · 0.80
setRuntimeLoggerMethod · 0.80
getMeasurementManagerMethod · 0.80
emptyMethod · 0.80
setPathConfigMethod · 0.45
setDayNightModeMethod · 0.45
loadThemeConfigMethod · 0.45
loadDesignTokenConfigMethod · 0.45

Tested by

no test coverage detected