()
| 1234 | /// Test chaining multiple builder methods. |
| 1235 | #[test] |
| 1236 | fn test_clone_builder_chain() { |
| 1237 | let clone = Clone::new("https://example.com/repo".to_string()) |
| 1238 | .with_path("my-project") |
| 1239 | .with_view("dev") |
| 1240 | .with_insecure(true) |
| 1241 | .with_timeout(120) |
| 1242 | .with_download_only(true) |
| 1243 | .with_into_existing(true) |
| 1244 | .with_all_views(true); |
| 1245 | |
| 1246 | assert_eq!(clone.url, "https://example.com/repo"); |
| 1247 | assert_eq!(clone.path, Some("my-project".to_string())); |
| 1248 | assert_eq!(clone.view, "dev"); |
| 1249 | assert!(clone.insecure); |
| 1250 | assert_eq!(clone.timeout, 120); |
| 1251 | assert!(clone.download_only); |
| 1252 | assert!(clone.into_existing); |
| 1253 | assert!(clone.all_views); |
| 1254 | } |
| 1255 | |
| 1256 | /// Test Clone can be cloned (the trait, not the command). |
| 1257 | #[test] |
nothing calls this directly
no test coverage detected