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

Method fixture

libcaf_net/caf/net/http/client.test.cpp:106–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105struct fixture {
106 fixture() {
107 mpx = net::multiplexer::make(nullptr);
108 if (auto err = mpx->init()) {
109 CAF_RAISE_ERROR("mpx->init failed");
110 }
111 mpx_thread = mpx->launch();
112 auto fd_pair = net::make_stream_socket_pair();
113 if (!fd_pair) {
114 CAF_RAISE_ERROR("make_stream_socket_pair failed");
115 }
116 std::tie(fd1, fd2) = *fd_pair;
117 }
118
119 ~fixture() {
120 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