summaryrefslogtreecommitdiff
path: root/rust/tests
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-10-29 16:41:12 -0700
committerMason Reed <mason@vector35.com>2025-10-29 16:41:12 -0700
commit59077d3400b57a811c6860b9ee7f5cf4ded084f9 (patch)
treee5c4de0a5308fbf08ee448cc827278da5b0bfffe /rust/tests
parentfd6f8a24826636588b2069ab7dabd1e72e4f6a48 (diff)
[Rust] Update repository API following updated Core API's
Diffstat (limited to 'rust/tests')
-rw-r--r--rust/tests/repository.rs20
1 files changed, 7 insertions, 13 deletions
diff --git a/rust/tests/repository.rs b/rust/tests/repository.rs
index ac861b2c..82e0e45d 100644
--- a/rust/tests/repository.rs
+++ b/rust/tests/repository.rs
@@ -4,22 +4,16 @@ use binaryninja::repository::RepositoryManager;
#[test]
fn test_list() {
let _session = Session::new().expect("Failed to initialize session");
- let manager = RepositoryManager::default();
- let repositories = manager.repositories();
+ let repositories = RepositoryManager::repositories();
for repository in &repositories {
let repo_path = repository.path();
- let repository_by_path = manager.repository_by_path(&repo_path).unwrap();
+ let repository_by_path = RepositoryManager::repository_by_path(&repo_path).unwrap();
assert_eq!(repository.url(), repository_by_path.url());
- }
- let repository = manager.default_repository();
- let _full_path = repository.full_path();
- let _path = repository.path();
- let _url = repository.url();
- let plugins = repository.plugins();
- for plugin in &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());
+ 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());
+ }
}
}