()
| 880 | |
| 881 | #[test] |
| 882 | fn test_push_builder_chain() { |
| 883 | let push = Push::new() |
| 884 | .with_remote("upstream") |
| 885 | .with_to_view("main") |
| 886 | .with_from_view("feature") |
| 887 | .with_dry_run(true) |
| 888 | .with_force(false) |
| 889 | .with_all(true) |
| 890 | .with_insecure(true) |
| 891 | .with_timeout(120); |
| 892 | |
| 893 | assert_eq!(push.remote, "upstream"); |
| 894 | assert_eq!(push.to_view, Some("main".to_string())); |
| 895 | assert_eq!(push.from_view, Some("feature".to_string())); |
| 896 | assert!(push.dry_run); |
| 897 | assert!(!push.force); |
| 898 | assert!(push.all); |
| 899 | assert!(push.insecure); |
| 900 | assert_eq!(push.timeout, 120); |
| 901 | } |
| 902 | |
| 903 | #[test] |
| 904 | fn test_push_clone() { |
nothing calls this directly
no test coverage detected