()
| 942 | /// Test chaining multiple builder methods. |
| 943 | #[test] |
| 944 | fn test_pull_builder_chain() { |
| 945 | let pull = Pull::new() |
| 946 | .with_remote("upstream") |
| 947 | .with_to_view("feature") |
| 948 | .with_from_view("main") |
| 949 | .with_dry_run(true) |
| 950 | .with_all(true) |
| 951 | .with_insecure(true) |
| 952 | .with_timeout(120) |
| 953 | .with_download_only(true); |
| 954 | |
| 955 | assert_eq!(pull.remote.as_deref(), Some("upstream")); |
| 956 | assert_eq!(pull.to_view, Some("feature".to_string())); |
| 957 | assert_eq!(pull.from_view, Some("main".to_string())); |
| 958 | assert!(pull.dry_run); |
| 959 | assert!(pull.all); |
| 960 | assert!(pull.insecure); |
| 961 | assert_eq!(pull.timeout, 120); |
| 962 | assert!(pull.download_only); |
| 963 | } |
| 964 | |
| 965 | /// Test Pull can be cloned. |
| 966 | #[test] |
nothing calls this directly
no test coverage detected