| 129 | |
| 130 | struct 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(); |
nothing calls this directly
no test coverage detected