MCPcopy Create free account
hub / github.com/ad-freiburg/qlever / createTestContainer

Function createTestContainer

test/WebSocketSessionTest.cpp:108–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106};
107
108net::awaitable<WebSocketTestContainer> createTestContainer(
109 net::io_context& ioContext) {
110 auto strand = net::make_strand(ioContext);
111 WebSocketTestContainer container{
112 strand, std::make_unique<QueryHub>(ioContext), QueryRegistry{},
113 tcp::socket{strand}, tcp::socket{strand}};
114 co_await connect(container.server_, container.client_);
115 co_return std::move(container);
116}
117
118// _____________________________________________________________________________
119

Callers 1

ASYNC_TESTFunction · 0.85

Calls 1

connectFunction · 0.85

Tested by

no test coverage detected