Get the selected remote to test with.
()
| 57 | |
| 58 | /// Get the selected remote to test with. |
| 59 | fn selected_remote() -> Option<Ref<Remote>> { |
| 60 | // If the user has initialized with a enterprise server we might already have an active remote. |
| 61 | match binaryninja::collaboration::active_remote() { |
| 62 | Some(remote) => Some(remote), |
| 63 | None => { |
| 64 | let remotes = binaryninja::collaboration::known_remotes(); |
| 65 | remotes.iter().next().map(|r| r.clone()) |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | #[rstest] |
| 71 | #[serial] |
no test coverage detected