()
| 701 | /// Test chaining multiple builder methods. |
| 702 | #[test] |
| 703 | fn test_clone_builder_chain() { |
| 704 | let clone = Clone::new("https://example.com/repo".to_string()) |
| 705 | .with_path("my-project") |
| 706 | .with_view("dev") |
| 707 | .with_insecure(true) |
| 708 | .with_timeout(120) |
| 709 | .with_download_only(true); |
| 710 | |
| 711 | assert_eq!(clone.url, "https://example.com/repo"); |
| 712 | assert_eq!(clone.path, Some("my-project".to_string())); |
| 713 | assert_eq!(clone.view, "dev"); |
| 714 | assert!(clone.insecure); |
| 715 | assert_eq!(clone.timeout, 120); |
| 716 | assert!(clone.download_only); |
| 717 | } |
| 718 | |
| 719 | /// Test Clone can be cloned (the trait, not the command). |
| 720 | #[test] |
nothing calls this directly
no test coverage detected