()
| 1013 | |
| 1014 | #[test] |
| 1015 | fn test_push_builder_chain() { |
| 1016 | let push = Push::new() |
| 1017 | .with_remote("upstream") |
| 1018 | .with_to_view("main") |
| 1019 | .with_from_view("feature") |
| 1020 | .with_dry_run(true) |
| 1021 | .with_force(true) |
| 1022 | .with_all(true) |
| 1023 | .with_insecure(true) |
| 1024 | .with_timeout(120); |
| 1025 | |
| 1026 | assert_eq!(push.remote, Some("upstream".to_string())); |
| 1027 | assert_eq!(push.to_view, Some("main".to_string())); |
| 1028 | assert_eq!(push.from_view, Some("feature".to_string())); |
| 1029 | assert!(push.dry_run); |
| 1030 | assert!(push.force); |
| 1031 | assert!(push.all); |
| 1032 | assert!(push.insecure); |
| 1033 | assert_eq!(push.timeout, 120); |
| 1034 | } |
| 1035 | |
| 1036 | #[test] |
| 1037 | fn test_push_clone() { |
nothing calls this directly
no test coverage detected