()
| 1010 | |
| 1011 | #[test] |
| 1012 | fn test_push_with_message() { |
| 1013 | let push = Push { |
| 1014 | message: Some("custom message".to_string()), |
| 1015 | no_push: true, |
| 1016 | remote: "upstream".to_string(), |
| 1017 | branch: Some("pr-branch".to_string()), |
| 1018 | allow_conflict_markers: false, |
| 1019 | allow_conflicts: false, |
| 1020 | }; |
| 1021 | assert_eq!(push.message.as_deref(), Some("custom message")); |
| 1022 | assert!(push.no_push); |
| 1023 | assert_eq!(push.remote, "upstream"); |
| 1024 | assert_eq!(push.branch.as_deref(), Some("pr-branch")); |
| 1025 | } |
| 1026 | |
| 1027 | #[test] |
| 1028 | fn test_push_branch_flag() { |
nothing calls this directly
no outgoing calls
no test coverage detected