()
| 796 | /// Test chaining multiple builder methods. |
| 797 | #[test] |
| 798 | fn test_clone_builder_chain() { |
| 799 | let clone = Clone::new("https://example.com/repo".to_string()) |
| 800 | .with_path("my-project") |
| 801 | .with_view("dev") |
| 802 | .with_insecure(true) |
| 803 | .with_timeout(120) |
| 804 | .with_download_only(true) |
| 805 | .with_into_existing(true); |
| 806 | |
| 807 | assert_eq!(clone.url, "https://example.com/repo"); |
| 808 | assert_eq!(clone.path, Some("my-project".to_string())); |
| 809 | assert_eq!(clone.view, "dev"); |
| 810 | assert!(clone.insecure); |
| 811 | assert_eq!(clone.timeout, 120); |
| 812 | assert!(clone.download_only); |
| 813 | assert!(clone.into_existing); |
| 814 | } |
| 815 | |
| 816 | /// Test Clone can be cloned (the trait, not the command). |
| 817 | #[test] |
nothing calls this directly
no test coverage detected