()
| 909 | |
| 910 | #[test] |
| 911 | fn test_push_builder_chain() { |
| 912 | let push = Push::new() |
| 913 | .with_remote("upstream") |
| 914 | .with_to_view("main") |
| 915 | .with_from_view("feature") |
| 916 | .with_dry_run(true) |
| 917 | .with_force(false) |
| 918 | .with_all(true) |
| 919 | .with_insecure(true) |
| 920 | .with_timeout(120); |
| 921 | |
| 922 | assert_eq!(push.remote.as_deref(), Some("upstream")); |
| 923 | assert_eq!(push.to_view, Some("main".to_string())); |
| 924 | assert_eq!(push.from_view, Some("feature".to_string())); |
| 925 | assert!(push.dry_run); |
| 926 | assert!(!push.force); |
| 927 | assert!(push.all); |
| 928 | assert!(push.insecure); |
| 929 | assert_eq!(push.timeout, 120); |
| 930 | } |
| 931 | |
| 932 | #[test] |
| 933 | fn test_push_clone() { |
nothing calls this directly
no test coverage detected