()
| 814 | /// Test chaining multiple builder methods. |
| 815 | #[test] |
| 816 | fn test_clone_builder_chain() { |
| 817 | let clone = Clone::new("https://example.com/repo".to_string()) |
| 818 | .with_path("my-project") |
| 819 | .with_view("dev") |
| 820 | .with_insecure(true) |
| 821 | .with_timeout(120) |
| 822 | .with_download_only(true) |
| 823 | .with_into_existing(true); |
| 824 | |
| 825 | assert_eq!(clone.url, "https://example.com/repo"); |
| 826 | assert_eq!(clone.path, Some("my-project".to_string())); |
| 827 | assert_eq!(clone.view, "dev"); |
| 828 | assert!(clone.insecure); |
| 829 | assert_eq!(clone.timeout, 120); |
| 830 | assert!(clone.download_only); |
| 831 | assert!(clone.into_existing); |
| 832 | } |
| 833 | |
| 834 | /// Test Clone can be cloned (the trait, not the command). |
| 835 | #[test] |
nothing calls this directly
no test coverage detected