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.
| 30 | // Environment already running, this is a re-entry of init and must |
| 31 | // return the existing instance. |
| 32 | TEST_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. |
| 39 | TEST_F(EngineLifecycleTest, E002_InitEngine_RepeatedCall_Idempotent) { |
nothing calls this directly
no test coverage detected