()
| 1002 | |
| 1003 | #[test] |
| 1004 | fn test_push_builder_chain() { |
| 1005 | let push = Push::new() |
| 1006 | .with_remote("upstream") |
| 1007 | .with_to_view("main") |
| 1008 | .with_from_view("feature") |
| 1009 | .with_dry_run(true) |
| 1010 | .with_force(true) |
| 1011 | .with_all(true) |
| 1012 | .with_insecure(true) |
| 1013 | .with_timeout(120); |
| 1014 | |
| 1015 | assert_eq!(push.remote, Some("upstream".to_string())); |
| 1016 | assert_eq!(push.to_view, Some("main".to_string())); |
| 1017 | assert_eq!(push.from_view, Some("feature".to_string())); |
| 1018 | assert!(push.dry_run); |
| 1019 | assert!(push.force); |
| 1020 | assert!(push.all); |
| 1021 | assert!(push.insecure); |
| 1022 | assert_eq!(push.timeout, 120); |
| 1023 | } |
| 1024 | |
| 1025 | #[test] |
| 1026 | fn test_push_clone() { |
nothing calls this directly
no test coverage detected