()
| 1251 | |
| 1252 | #[test] |
| 1253 | fn test_push_builder_chain() { |
| 1254 | let push = Push::new() |
| 1255 | .with_remote("upstream") |
| 1256 | .with_to_view("main") |
| 1257 | .with_from_view("feature") |
| 1258 | .with_dry_run(true) |
| 1259 | .with_force(true) |
| 1260 | .with_all(true) |
| 1261 | .with_insecure(true) |
| 1262 | .with_timeout(120); |
| 1263 | |
| 1264 | assert_eq!(push.remote, Some("upstream".to_string())); |
| 1265 | assert_eq!(push.to_view, Some("main".to_string())); |
| 1266 | assert_eq!(push.from_view, Some("feature".to_string())); |
| 1267 | assert!(push.dry_run); |
| 1268 | assert!(push.force); |
| 1269 | assert!(push.all); |
| 1270 | assert!(push.insecure); |
| 1271 | assert_eq!(push.timeout, 120); |
| 1272 | } |
| 1273 | |
| 1274 | #[test] |
| 1275 | fn test_push_clone() { |
nothing calls this directly
no test coverage detected