()
| 1532 | /// Test chaining multiple builder methods. |
| 1533 | #[test] |
| 1534 | fn test_clone_builder_chain() { |
| 1535 | let clone = Clone::new("https://example.com/repo".to_string()) |
| 1536 | .with_path("my-project") |
| 1537 | .with_view("dev") |
| 1538 | .with_insecure(true) |
| 1539 | .with_timeout(120) |
| 1540 | .with_download_only(true) |
| 1541 | .with_into_existing(true) |
| 1542 | .with_all_views(true); |
| 1543 | |
| 1544 | assert_eq!(clone.url, "https://example.com/repo"); |
| 1545 | assert_eq!(clone.path, Some("my-project".to_string())); |
| 1546 | assert_eq!(clone.view, "dev"); |
| 1547 | assert!(clone.insecure); |
| 1548 | assert_eq!(clone.timeout, 120); |
| 1549 | assert!(clone.download_only); |
| 1550 | assert!(clone.into_existing); |
| 1551 | assert!(clone.all_views); |
| 1552 | } |
| 1553 | |
| 1554 | /// Test Clone can be cloned (the trait, not the command). |
| 1555 | #[test] |
nothing calls this directly
no test coverage detected