()
| 1163 | /// Test chaining multiple builder methods. |
| 1164 | #[test] |
| 1165 | fn test_pull_builder_chain() { |
| 1166 | let pull = Pull::new() |
| 1167 | .with_remote("upstream") |
| 1168 | .with_to_view("feature") |
| 1169 | .with_from_view("main") |
| 1170 | .with_dry_run(true) |
| 1171 | .with_all(true) |
| 1172 | .with_insecure(true) |
| 1173 | .with_timeout(120) |
| 1174 | .with_download_only(true); |
| 1175 | |
| 1176 | assert_eq!(pull.remote.as_deref(), Some("upstream")); |
| 1177 | assert_eq!(pull.to_view, Some("feature".to_string())); |
| 1178 | assert_eq!(pull.from_view, Some("main".to_string())); |
| 1179 | assert!(pull.dry_run); |
| 1180 | assert!(pull.all); |
| 1181 | assert!(pull.insecure); |
| 1182 | assert_eq!(pull.timeout, 120); |
| 1183 | assert!(pull.download_only); |
| 1184 | } |
| 1185 | |
| 1186 | /// Test Pull can be cloned. |
| 1187 | #[test] |
nothing calls this directly
no test coverage detected