Find an available TCP port by binding to port 0.
()
| 32 | |
| 33 | /// Find an available TCP port by binding to port 0. |
| 34 | fn free_port() -> u16 { |
| 35 | TcpListener::bind("127.0.0.1:0") |
| 36 | .unwrap() |
| 37 | .local_addr() |
| 38 | .unwrap() |
| 39 | .port() |
| 40 | } |
| 41 | |
| 42 | /// Path to the wasm-aware LLDB. |
| 43 | fn lldb_path() -> String { |
no test coverage detected