#[cfg(test)] use reel::Remote; #[test] fn remote_usage() -> std::result::Result<(), Box> { let remote = Remote::new("https://gitlab.com/crates-rs/reel.git")?; assert_eq!( "https://gitlab.com/crates-rs/reel.git", &remote.url().to_string() ); assert_eq!("https", remote.url().scheme()); let cache_path = remote.cache_path(); assert!(cache_path.to_str().unwrap().contains("gitlab.com")); Ok(()) }