()
| 1109 | |
| 1110 | #[test] |
| 1111 | fn test_push_builder_chain() { |
| 1112 | let push = Push::new() |
| 1113 | .with_remote("upstream") |
| 1114 | .with_to_view("main") |
| 1115 | .with_from_view("feature") |
| 1116 | .with_dry_run(true) |
| 1117 | .with_force(true) |
| 1118 | .with_all(true) |
| 1119 | .with_insecure(true) |
| 1120 | .with_timeout(120); |
| 1121 | |
| 1122 | assert_eq!(push.remote, Some("upstream".to_string())); |
| 1123 | assert_eq!(push.to_view, Some("main".to_string())); |
| 1124 | assert_eq!(push.from_view, Some("feature".to_string())); |
| 1125 | assert!(push.dry_run); |
| 1126 | assert!(push.force); |
| 1127 | assert!(push.all); |
| 1128 | assert!(push.insecure); |
| 1129 | assert_eq!(push.timeout, 120); |
| 1130 | } |
| 1131 | |
| 1132 | #[test] |
| 1133 | fn test_push_clone() { |
nothing calls this directly
no test coverage detected