()
| 982 | /// Test chaining multiple builder methods. |
| 983 | #[test] |
| 984 | fn test_pull_builder_chain() { |
| 985 | let pull = Pull::new() |
| 986 | .with_remote("upstream") |
| 987 | .with_to_view("feature") |
| 988 | .with_from_view("main") |
| 989 | .with_dry_run(true) |
| 990 | .with_all(true) |
| 991 | .with_insecure(true) |
| 992 | .with_timeout(120) |
| 993 | .with_download_only(true); |
| 994 | |
| 995 | assert_eq!(pull.remote.as_deref(), Some("upstream")); |
| 996 | assert_eq!(pull.to_view, Some("feature".to_string())); |
| 997 | assert_eq!(pull.from_view, Some("main".to_string())); |
| 998 | assert!(pull.dry_run); |
| 999 | assert!(pull.all); |
| 1000 | assert!(pull.insecure); |
| 1001 | assert_eq!(pull.timeout, 120); |
| 1002 | assert!(pull.download_only); |
| 1003 | } |
| 1004 | |
| 1005 | /// Test Pull can be cloned. |
| 1006 | #[test] |
nothing calls this directly
no test coverage detected