blob: 82e0e45d576603c73c15103a403b1bed8f54444f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
use binaryninja::headless::Session;
use binaryninja::repository::RepositoryManager;
#[test]
fn test_list() {
let _session = Session::new().expect("Failed to initialize session");
let repositories = RepositoryManager::repositories();
for repository in &repositories {
let repo_path = repository.path();
let repository_by_path = RepositoryManager::repository_by_path(&repo_path).unwrap();
assert_eq!(repository.url(), repository_by_path.url());
for plugin in &repository.plugins() {
let plugin_path = plugin.path();
let plugin_by_path = repository.plugin_by_path(&plugin_path).unwrap();
assert_eq!(plugin.package_url(), plugin_by_path.package_url());
}
}
}
|