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

Function test_list

rust/tests/repository.rs:5–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4#[test]
5fn test_list() {
6 let _session = Session::new().expect("Failed to initialize session");
7 let manager = RepositoryManager::default();
8 let repositories = manager.repositories();
9 for repository in &repositories {
10 let repo_path = repository.path();
11 let repository_by_path = manager.repository_by_path(repo_path).unwrap();
12 assert_eq!(repository.url(), repository_by_path.url());
13 }
14
15 let repository = manager.default_repository();
16 let _full_path = repository.full_path();
17 let _path = repository.path();
18 let _url = repository.url();
19 let plugins = repository.plugins();
20 for plugin in &plugins {
21 let plugin_path = plugin.path();
22 let plugin_by_path = repository.plugin_by_path(plugin_path).unwrap();
23 assert_eq!(plugin.package_url(), plugin_by_path.package_url());
24 }
25}

Callers

nothing calls this directly

Calls 8

repository_by_pathMethod · 0.80
plugin_by_pathMethod · 0.80
repositoriesMethod · 0.45
pathMethod · 0.45
default_repositoryMethod · 0.45
full_pathMethod · 0.45
urlMethod · 0.45
pluginsMethod · 0.45

Tested by

no test coverage detected