()
| 1347 | /// Test chaining multiple builder methods. |
| 1348 | #[test] |
| 1349 | fn test_clone_builder_chain() { |
| 1350 | let clone = Clone::new("https://example.com/repo".to_string()) |
| 1351 | .with_path("my-project") |
| 1352 | .with_view("dev") |
| 1353 | .with_insecure(true) |
| 1354 | .with_timeout(120) |
| 1355 | .with_download_only(true) |
| 1356 | .with_into_existing(true) |
| 1357 | .with_all_views(true); |
| 1358 | |
| 1359 | assert_eq!(clone.url, "https://example.com/repo"); |
| 1360 | assert_eq!(clone.path, Some("my-project".to_string())); |
| 1361 | assert_eq!(clone.view, "dev"); |
| 1362 | assert!(clone.insecure); |
| 1363 | assert_eq!(clone.timeout, 120); |
| 1364 | assert!(clone.download_only); |
| 1365 | assert!(clone.into_existing); |
| 1366 | assert!(clone.all_views); |
| 1367 | } |
| 1368 | |
| 1369 | /// Test Clone can be cloned (the trait, not the command). |
| 1370 | #[test] |
nothing calls this directly
no test coverage detected