()
| 874 | /// Test chaining multiple builder methods. |
| 875 | #[test] |
| 876 | fn test_pull_builder_chain() { |
| 877 | let pull = Pull::new() |
| 878 | .with_remote("upstream") |
| 879 | .with_to_view("feature") |
| 880 | .with_from_view("main") |
| 881 | .with_dry_run(true) |
| 882 | .with_all(true) |
| 883 | .with_insecure(true) |
| 884 | .with_timeout(120) |
| 885 | .with_download_only(true); |
| 886 | |
| 887 | assert_eq!(pull.remote.as_deref(), Some("upstream")); |
| 888 | assert_eq!(pull.to_view, Some("feature".to_string())); |
| 889 | assert_eq!(pull.from_view, Some("main".to_string())); |
| 890 | assert!(pull.dry_run); |
| 891 | assert!(pull.all); |
| 892 | assert!(pull.insecure); |
| 893 | assert_eq!(pull.timeout, 120); |
| 894 | assert!(pull.download_only); |
| 895 | } |
| 896 | |
| 897 | /// Test Pull can be cloned. |
| 898 | #[test] |
nothing calls this directly
no test coverage detected