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