()
| 1115 | |
| 1116 | #[test] |
| 1117 | fn test_exit_code_remote_error() { |
| 1118 | assert_eq!(CliError::remote_error("failed", None).exit_code(), 4); |
| 1119 | assert_eq!( |
| 1120 | CliError::RemoteNotFound { |
| 1121 | name: "origin".into() |
| 1122 | } |
| 1123 | .exit_code(), |
| 1124 | 4 |
| 1125 | ); |
| 1126 | } |
| 1127 | |
| 1128 | #[test] |
| 1129 | fn test_exit_code_internal() { |
nothing calls this directly
no outgoing calls
no test coverage detected