MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / selected_remote

Function selected_remote

rust/tests/collaboration.rs:59–68  ·  view source on GitHub ↗

Get the selected remote to test with.

()

Source from the content-addressed store, hash-verified

57
58/// Get the selected remote to test with.
59fn 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]

Callers 3

test_connectionFunction · 0.85
test_project_creationFunction · 0.85
test_project_syncFunction · 0.85

Calls 6

mapMethod · 0.80
active_remoteFunction · 0.50
known_remotesFunction · 0.50
nextMethod · 0.45
iterMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected