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()); } let repository = RepositoryManager::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(); let _license_text = plugin.license_text(); assert_eq!(plugin.package_url(), plugin_by_path.package_url()); } }