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

Method fixture

libcaf_net/caf/net/lp/framing.test.cpp:131–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130struct fixture {
131 fixture() {
132 mpx = net::multiplexer::make(nullptr);
133 if (auto err = mpx->init()) {
134 CAF_RAISE_ERROR("mpx->init failed");
135 }
136 mpx_thread = mpx->launch();
137 auto fd_pair = net::make_stream_socket_pair();
138 if (!fd_pair) {
139 CAF_RAISE_ERROR("make_stream_socket_pair failed");
140 }
141 std::tie(fd1, fd2) = *fd_pair;
142 }
143
144 ~fixture() {
145 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