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

Method SetUp

tests/cpp/surface/component_manager_test.cpp:271–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269class ComponentManagerTest : public ::testing::Test {
270protected:
271 void SetUp() override {
272 surfaceContext_ = std::make_unique<MockSurfaceContextCM>();
273 vdom_ = std::make_unique<MockVirtualDOMForCM>();
274 batchGuard_ = std::make_unique<BatchGuard>([](){});
275
276 ON_CALL(*vdom_, batchGuard()).WillByDefault(::testing::Return(batchGuard_.get()));
277 EXPECT_CALL(*vdom_, updateNode(::testing::_)).Times(::testing::AnyNumber());
278
279 cm_ = std::make_unique<ComponentManager>(surfaceContext_.get(), vdom_.get(), "default");
280 }
281
282 std::unique_ptr<MockSurfaceContextCM> surfaceContext_;
283 std::unique_ptr<MockVirtualDOMForCM> vdom_;

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected