()
| 1013 | /// Test chaining multiple builder methods. |
| 1014 | #[test] |
| 1015 | fn test_clone_builder_chain() { |
| 1016 | let clone = Clone::new("https://example.com/repo".to_string()) |
| 1017 | .with_path("my-project") |
| 1018 | .with_view("dev") |
| 1019 | .with_insecure(true) |
| 1020 | .with_timeout(120) |
| 1021 | .with_download_only(true) |
| 1022 | .with_into_existing(true) |
| 1023 | .with_all_views(true); |
| 1024 | |
| 1025 | assert_eq!(clone.url, "https://example.com/repo"); |
| 1026 | assert_eq!(clone.path, Some("my-project".to_string())); |
| 1027 | assert_eq!(clone.view, "dev"); |
| 1028 | assert!(clone.insecure); |
| 1029 | assert_eq!(clone.timeout, 120); |
| 1030 | assert!(clone.download_only); |
| 1031 | assert!(clone.into_existing); |
| 1032 | assert!(clone.all_views); |
| 1033 | } |
| 1034 | |
| 1035 | /// Test Clone can be cloned (the trait, not the command). |
| 1036 | #[test] |
nothing calls this directly
no test coverage detected