()
| 3 | |
| 4 | #[test] |
| 5 | fn 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 | } |
nothing calls this directly
no test coverage detected