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