MCPcopy Create free account
hub / github.com/actor-framework/actor-framework / fixture

Method fixture

libcaf_net/caf/net/http/server.test.cpp:102–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101struct fixture {
102 fixture() {
103 mpx = net::multiplexer::make(nullptr);
104 if (auto err = mpx->init()) {
105 CAF_RAISE_ERROR("mpx->init failed");
106 }
107 mpx_thread = mpx->launch();
108 auto fd_pair = net::make_stream_socket_pair();
109 if (!fd_pair) {
110 CAF_RAISE_ERROR("make_stream_socket_pair failed");
111 }
112 std::tie(fd1, fd2) = *fd_pair;
113 }
114
115 ~fixture() {
116 mpx->shutdown();

Callers

nothing calls this directly

Calls 4

make_stream_socket_pairFunction · 0.85
makeFunction · 0.50
initMethod · 0.45
launchMethod · 0.45

Tested by

no test coverage detected