()
| 889 | |
| 890 | #[test] |
| 891 | fn test_push_builder_chain() { |
| 892 | let push = Push::new() |
| 893 | .with_remote("upstream") |
| 894 | .with_to_view("main") |
| 895 | .with_from_view("feature") |
| 896 | .with_dry_run(true) |
| 897 | .with_force(false) |
| 898 | .with_all(true) |
| 899 | .with_insecure(true) |
| 900 | .with_timeout(120); |
| 901 | |
| 902 | assert_eq!(push.remote.as_deref(), Some("upstream")); |
| 903 | assert_eq!(push.to_view, Some("main".to_string())); |
| 904 | assert_eq!(push.from_view, Some("feature".to_string())); |
| 905 | assert!(push.dry_run); |
| 906 | assert!(!push.force); |
| 907 | assert!(push.all); |
| 908 | assert!(push.insecure); |
| 909 | assert_eq!(push.timeout, 120); |
| 910 | } |
| 911 | |
| 912 | #[test] |
| 913 | fn test_push_clone() { |
nothing calls this directly
no test coverage detected